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(); }
public DialogAuthenticator(AuthenticationDialog dialog, AuthenticationDialogViewModel vm) { _dialog = dialog; _vm = vm; }