Exemple #1
0
        private void CreateTest_Click(object sender, RoutedEventArgs e)
        {
            CreateTestWindow createTest = new CreateTestWindow(_userId);

            createTest.Show();
            Close();
        }
Exemple #2
0
        private async void EditTest_Click(object sender, RoutedEventArgs e)
        {
            var tests = await TestController.GetAllTestsAsync();

            // Ask the user what test they want to edit
            TestSelectionWindow testSelection = new TestSelectionWindow();

            testSelection.PopulateComboBox(tests);
            testSelection.Owner = this;
            Effect = Utility.Blur;
            testSelection.ShowDialog();

            if (testSelection.DialogResult == true)
            {
                CreateTestWindow test = new CreateTestWindow(testSelection.SelectedValue, _userId);
                test.Show();
                Close();
            }
        }