private void DoLogin(GUI.Dialogs.Login dialog) { if (dialog.ValidateInput() == false) { return; } if ((myInfo = dialog.CheckLogin()) != null) { dialog.Destroy(); } }
private void DoLogin(GUI.Dialogs.Login dialog) { if (dialog.ValidateInput() == false) { return; } if ((myInfo = dialog.CheckLogin()) != null) { if (UserLogin != null) { UserLogin(myInfo); } if (LoginDialogClosed != null) { LoginDialogClosed(loginDialog); } dialog.Destroy(); loginDialog = null; } }