Пример #1
0
        private void AddSessionButton_OnClick(object sender, RoutedEventArgs e)
        {
            var add = new MainWindow_Session(conn, null);

            add.ShowDialog();
            UpdateAll();
        }
Пример #2
0
        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();
        }