private void ShowMainForm() { this.Hide(); DeviceManage dm = DeviceManage.GetInstance(this); if (dm != null && !dm.IsDisposed) { dm.WindowState = FormWindowState.Maximized; dm.Show(); } }
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(); } } }