Beispiel #1
0
 private void problemReportButton_Click(object sender, EventArgs e)
 {
     if (projectsListBox.SelectedItem == null) {
         MessageBox.Show("请选择要查看报告的项目!", "提示");
         return;
     }
     ProblemReport dialogue = new ProblemReport(true, ((Info)projectsListBox.SelectedItem).Name);
     dialogue.ShowDialog(this);
 }
Beispiel #2
0
 private void editProblemReportButton_Click(object sender, EventArgs e)
 {
     if (projectsListBox.SelectedItem == null) {
         MessageBox.Show("请选择要编辑报告的项目!", "提示");
         return;
     }
     ProblemReport dialogue = new ProblemReport(false, ((ProjectInfo)projectsListBox.SelectedItem).Name);
     if(dialogue.ShowDialog(this) == DialogResult.OK)
         MessageBox.Show("提交成功!", "提示");
 }