private void NotificationButton_Click(object sender, RoutedEventArgs e) { NotificationsWindow window = new NotificationsWindow(patient); window.ShowDialog(); RefreshTable(); }
public ModernThemeManager(PanaceaServices core, Theme theme) { _core = core; _mainPage = new MainPageViewModel(_core, theme); InitializeComponent(); popup = new NotificationsWindow(); _translator = new Translator("core"); }
void MainWindow_Loaded(object sender, RoutedEventArgs e) { if (Settings.Default.Telemetry == -1) { _vm.EnableTelemetry = true; } if (Settings.Default.ShowNews) { var w = new NotificationsWindow(); w.Owner = Application.Current.MainWindow; w.WindowStartupLocation = WindowStartupLocation.CenterOwner; w.ShowDialog(); } }
public HResult Show() { try { if (_window == null) { _window = (NotificationsWindow)_package.CreateToolWindow(typeof(NotificationsWindow)); new WindowListener(this); _window.RedrawItems(_items); } return(_window.Frame.Show()); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }