private void RegButton_Click(object sender, RoutedEventArgs e) { RegistrationWindow registrationWindow = new RegistrationWindow(); registrationWindow.Show(); this.Close(); }
private void button_Registration_Click() { IsWindowVisible = false; RegistrationWindow registrationWindow = new RegistrationWindow(); registrationWindow.Show(); }
private void NoButtonAc_Click(object sender, RoutedEventArgs e) { RegistrationWindow win = new RegistrationWindow(); win.Show(); this.Close(); }
private void Registration(object sender, RoutedEventArgs e) { var rW = new RegistrationWindow(); rW.Show(); Close(); }
private void OnRegister() { var register = new RegistrationWindow(); CloseAction(); register.Show(); }
/// <summary> /// The registration. /// </summary> private void Registration() { var registrationWindow = new RegistrationWindow(); registrationWindow.Show(); this.Close("LoginWindow"); }
private void BtnRegistrationClick(object sender, RoutedEventArgs e) { RegistrationWindow registrationWindow = new RegistrationWindow(); registrationWindow.Owner = this; this.Hide(); registrationWindow.Show(); }
public static void OpenRegistrationWindow() { RegistrationWindow regWindow = new RegistrationWindow(); regWindow.Show(); Application.Current.MainWindow.Close(); Application.Current.MainWindow = regWindow; }
private void Registration(object obj) { RegistrationWindow autorizationWindow = new RegistrationWindow(); autorizationWindow.Show(); foreach (Window el in Application.Current.Windows) { if (el.ToString().Contains("Login")) { el.Close(); break; } } }
private void OnRegistrationWindowCommandExecuted(object p) { if (Enter != null) { Enter.Close(); } if (Registration != null) { Registration.Close(); } Registration = new RegistrationWindow(); Registration.Show(); }
private void Register(string email, string password, string firstName, string lastName) { var noticeWindow = Utils.ShowNotice("Registration is in a process.. Please wait.", okButtonClicked: () => { registrationWindow.Show(); }); noticeWindow.OkButton.interactable = false; Action registerAction = () => { var parameters = new RegisterRequestParameters(email, password.CreateSha512(), firstName, lastName); coroutinesExecutor.StartTask((yield) => Register(yield, parameters), exception => ServiceConnectionProviderUtils.OnOperationFailed()); }; if (RegistrationConnectionProvider.Instance.IsConnected()) { registerAction.Invoke(); } else { RegistrationConnectionProvider.Instance.Connect(onConnected: registerAction); } }
private void CreateRegistrationWindow() { registrationWindow = UserInterfaceContainer.Instance.Add <RegistrationWindow>().AssertNotNull(); registrationWindow.RegisterButtonClicked += OnRegisterButtonClicked; registrationWindow.BackButtonClicked += OnBackButtonClicked; registrationWindow.ShowNotice += (message) => Utils.ShowNotice(message, okButtonClicked: () => registrationWindow.Show()); }