Ejemplo n.º 1
0
 //保存事件
 private void btnSave_Click(object sender, EventArgs e)
 {
     Save();
     IsAwoke.isAwork();
     IsAwoke.isExit = true;
     this.Close();
 }
Ejemplo n.º 2
0
        private void LoginForm_Load(object sender, EventArgs e)
        {
            txtLoginId.Text  = A_AdminId;
            txtLoginPwd.Text = Password;

            if (!IsProgram())
            {
                MessageBox.Show("您已经启动程序!", "温馨提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Close();
            }
            IsAwoke.isAwork();
            cboLoginType.Text = "管理员";
        }
Ejemplo n.º 3
0
 //窗体加载事件
 private void MainForm_Load(object sender, EventArgs e)
 {
     //显示时间
     tslblTime.Text = DateTime.Now.ToString();
     //刷新数据库里面设置的数据
     IsAwoke.isAwork();
     cboLook.Text = "全部";
     hh.mf        = this;
     //显示房间信息
     hh.ShowHouseState(0);
     //显示服务信息
     ShowServer(0);
     //显示价格
     ShowPrice();
     //显示标题
     ShowTitle();
     //显示总房态
     ShowAllInfo();
     //显示当前登录用户
     ShowLoginId();
     ShowPurview();
     pHelp();
 }