/// <summary>
        /// Открывается окно регистрации
        /// </summary>
        private void RegistrationClick(object obj)
        {
            RegistrationWindows   registrWindow = new RegistrationWindows();
            RegistrationViewModel viewModel     = new RegistrationViewModel(registrWindow);

            registrWindow.DataContext = viewModel;
            registrWindow.Show();
        }
Exemple #2
0
 public RegistrationViewModel(RegistrationWindows window)
 {
     RegisterBtnCommand = new Command(new Action <object>(RegisterClick));
     _window            = window;
 }