private void ShowMemo() { MemoWindow memo = new MemoWindow(_testId, _userId); memo.Show(); Close(); }
private async void ButtonViewMemo_Click(object sender, RoutedEventArgs e) { var tests = await StudentController.GetTestsUserHasWrittenAsync(_userId); // Ask the student what test they want to view TestSelectionWindow testSelection = new TestSelectionWindow(); testSelection.PopulateComboBox(tests); testSelection.Owner = this; Effect = Utility.Blur; testSelection.ShowDialog(); // Display the memo if (testSelection.DialogResult != true) { return; } MemoWindow memo = new MemoWindow(testSelection.SelectedValue, _userId); memo.Show(); Close(); }