internal void login() { using (LoginGUI login = new LoginGUI()) { this.Invoke(new MethodInvoker(delegate { login.ShowDialog(this); if (!login.Cancelled) { UpdateStatus(0, "Validating your credentials..."); ServerPackets.Instance.CS_ValidateUser(login.Username, login.Password, FingerPrint.Value); } else { MessageBox.Show("Cannot continue without proper login credentials! Shutting down!", "Fatal Exception", MessageBoxButtons.OK, MessageBoxIcon.Error); ServerManager.Instance.Close(); this.Close(); } })); } }
private void loginToolStripMenuItem_Click(object sender, EventArgs e) { LoginGUI loginGUI = new LoginGUI(client); loginGUI.Show(); }
public AddressGUI(LoginGUI loginGUI) { this.loginGUI = loginGUI; InitializeComponent(); }