public AuthenticationDialog(AuthenticationDialogViewModel viewModel)
 {
     _viewModel  = viewModel;
     DataContext = _viewModel;
     Closing    += AuthenticationDialog_Closing;
     _viewModel.OnCloseRequested += (s, e) => { Hide(); };
     InitializeComponent();
 }
Пример #2
0
 public DialogAuthenticator(AuthenticationDialog dialog, AuthenticationDialogViewModel vm)
 {
     _dialog = dialog;
     _vm     = vm;
 }