示例#1
0
        private void LoadTaskbarIcon(TrayIconViewModel trayVm, AuthenticationDialog authDialog)
        {
            trayVm.OnExitApplication         += (s, e) => Application.Current.Shutdown();
            trayVm.OnAuthenticationRequested += (s, e) => authDialog.Show();

            _tb.DataContext = trayVm;
            _tb?.BringIntoView();
        }
示例#2
0
 public DialogAuthenticator(AuthenticationDialog dialog, AuthenticationDialogViewModel vm)
 {
     _dialog = dialog;
     _vm     = vm;
 }