⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 waitform.cs

📁 酒店管理系统
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace HotelManager
{
    public partial class Wait_Form : Form
    {
        private int i = 0;
        public Wait_Form()
        {
            InitializeComponent();
        }
        
        public Wait_Form(int x)
        {
            //用户身份
            i = x;
            InitializeComponent();
        }

        private void Wait_Form_Load(object sender, EventArgs e)
        {
            this.timer1.Start();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            if (this.progressBar1.Value < 100)
            {
                this.progressBar1.Value += 2;
                this.label2.Text = (Convert.ToInt32(this.label2.Text) + 2).ToString();
            }
            else
            {
                MainForm f = new MainForm(i);
                f.Show();
                this.Close();
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -