Exemplo n.º 1
0
 private void OpenMenuItem_Click(object sender, EventArgs e)
 {
     if (openFileDialog.ShowDialog() == DialogResult.OK)
     {
         IndexReportCard = new Assessments(AssessmentGrid, StipendBox, DateStartPicker, DateFinishPicker);
         if (IndexReportCard.Load(openFileDialog.FileName))
         {
             saveFileDialog.FileName = openFileDialog.FileName;
         }
         else
         {
             MessageBox.Show("Неверный формат файла", "Ошибка чтения файла");
         }
     }
 }
Exemplo n.º 2
0
 private void SaveMenuItem_Click(object sender, EventArgs e)
 {
     if (saveFileDialog.FileName != "")
     {
         IndexReportCard.Save(saveFileDialog.FileName);
     }
     else
     {
         if (saveFileDialog.ShowDialog() == DialogResult.OK)
         {
             IndexReportCard         = new Assessments(AssessmentGrid, StipendBox, DateStartPicker, DateFinishPicker);
             ReportCardPanel.Visible = true;
             IndexReportCard.Save(saveFileDialog.FileName);
         }
     }
 }
Exemplo n.º 3
0
 private void CreateMenuItem_Click(object sender, EventArgs e)
 {
     IndexReportCard = new Assessments(AssessmentGrid, StipendBox, DateStartPicker, DateFinishPicker);
 }