private void Login() { this.Hide(); loginform = new Login(); loginform.GroupListReference(this); DialogResult result = loginform.ShowDialog(); if (result == DialogResult.OK) { username = loginform.username; if (String.IsNullOrEmpty(username) || String.IsNullOrWhiteSpace(username)) { MessageBox.Show("Tên đăng nhập không được rỗng !!!"); Login(); } else { this.Visible = true; myClient.LogIn(username, "WeDontHavePass"); } } else { this.Close(); } }
private void Login() { this.Hide(); loginform = new Login(); loginform.GroupListReference(this); DialogResult result = loginform.ShowDialog(); if (result == DialogResult.OK) { this.Visible = true; username = loginform.username; myClient.LogIn(username, "WeDontHavePass"); } else { this.Close(); } }