/// <summary> /// Открывается окно регистрации /// </summary> private void RegistrationClick(object obj) { RegistrationWindows registrWindow = new RegistrationWindows(); RegistrationViewModel viewModel = new RegistrationViewModel(registrWindow); registrWindow.DataContext = viewModel; registrWindow.Show(); }
public RegistrationViewModel(RegistrationWindows window) { RegisterBtnCommand = new Command(new Action <object>(RegisterClick)); _window = window; }