private void NotificationButton_Click(object sender, RoutedEventArgs e) { NotificationsWindow window = new NotificationsWindow(patient); window.ShowDialog(); RefreshTable(); }
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(); } }