private void AddSessionButton_OnClick(object sender, RoutedEventArgs e) { var add = new MainWindow_Session(conn, null); add.ShowDialog(); UpdateAll(); }
private void ShowSessionButton_OnClick(object sender, RoutedEventArgs e) { SessionQh selectedSession = (SessionQh)CurrentSessionsDataGrid.SelectedItem; if (selectedSession == null) { MessageBox.Show("Choose session to show"); return; } var show = new MainWindow_Session(conn, selectedSession); show.ShowDialog(); UpdateAll(); }