private void buttonEnter_Click(object sender, RoutedEventArgs e) { EnterWindow ma = new EnterWindow(); ma.WindowStartupLocation = WindowStartupLocation.CenterScreen; this.Close(); ma.ShowDialog(); }
public static void Enter_Click() { if (!enterWindowWasShowed) { enterWindowWasShowed = true; enterWindow.ShowDialog(); } else { enterWindow = new EnterWindow(); enterWindow.ShowDialog(); } }
private void OnAuthorizationWindowCommandExecuted(object p) { if (Registration != null) { Registration.Close(); } if (Enter != null) { Enter.Close(); } Enter = new EnterWindow(); Enter.Show(); }