private void btnLogin_Click(object sender, EventArgs e) { if (loginUI.Login() && !loginUI.IsExpire()) { this.tbPwd.Clear(); this.lbAccount.Text = ""; this.lbPwd.Text = ""; //this.Visible = false; ShowMainForm(); } }