Esempio n. 1
0
 public void OpenRegistrationWindow()
 {
     Views.Registration registration = new Views.Registration();
     registration.Show();
     foreach (Window window in App.Current.Windows)
     {
         // если окно - объект Authorization
         if (window is Views.Authorization)
         {
             window.Close();
         }
     }
 }
 private void ShowRegistrationWindow()
 {
     Views.Registration menu = new Views.Registration();
     menu.Show();
     CloseWindow();
 }