コード例 #1
0
ファイル: Login.cs プロジェクト: thachgiasoft/Tempsen
        private void ShowMainForm()
        {
            this.Hide();
            DeviceManage dm = DeviceManage.GetInstance(this);

            if (dm != null && !dm.IsDisposed)
            {
                dm.WindowState = FormWindowState.Maximized;
                dm.Show();
            }
        }
コード例 #2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            if (loginUI.Login())
            {
                //this.tbAccount.Focus();
                //this.tbAccount.Clear();
                this.tbPwd.Clear();
                this.lbAccount.Text = "";
                this.lbPwd.Text     = "";
                this.Visible        = false;

                DeviceManage dm = DeviceManage.GetInstance(this);
                if (dm != null && !dm.IsDisposed)
                {
                    dm.Show();
                }
            }
        }