Example #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("Неверный формат файла", "Ошибка чтения файла");
         }
     }
 }