private void scoreBoard_OnGradeUser(object sender, ScoreboardClickedEvent e) { using (GradingStatus frmStatus = new GradingStatus(judger, "", e.User)) { frmStatus.Owner = Window.GetWindow(this); frmStatus.ShowDialog(); judger.SaveContest(); } }
private void menuGrade_Click(object sender, RoutedEventArgs e) { if (!judger.IsOpen) { return; } SelectionGradingMode frm = new SelectionGradingMode(judger); frm.Owner = Window.GetWindow(this); if (frm.ShowDialog() == true) { using (GradingStatus frmStatus = new GradingStatus(judger, frm.ProblemSelected, frm.UserSelected)) { frmStatus.Owner = Window.GetWindow(this); frmStatus.ShowDialog(); judger.SaveContest(); } } }