/// <summary>
 /// Выбор титульного файла УП
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonSelectTitulEdPlan_Click(object sender, EventArgs e)
 {
     string fileName = FileWorker.OpenExcelFile();
     if (fileName != null)
     {
         edPlanProcessor = new EducationalPlanProcessor();
         edPlanProcessor.OpenExcelDoc(fileName);
         edPlanProcessor.CreateEducationalPlan();
         edPlanProcessor.CloseExcelDoc();
         inputEdTitulData();
     }
 }
Esempio n. 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     OpenFileDialog ofdOpen = new OpenFileDialog() { Filter = "Книга Excel 97-2003|*.xls|Книга Excel|*.xlsx|Все файлы|*.*" };
     
         if (ofdOpen.ShowDialog() != DialogResult.OK)
             return;
         EdPlanProcessor = new EducationalPlanProcessor();
         EdPlanProcessor.OpenExcelDoc(ofdOpen.FileName);
     ofdOpen.Dispose();
     EdPlanProcessor.CreateEducationalPlan();
     EdPlanProcessor.CloseExcelDoc();
 }
 private void buttonSelectTableEdPlan_Click(object sender, EventArgs e)
 {
     string fileName = FileWorker.OpenExcelFile();
     if (fileName != null)
     {
         if (EdPlanProcessor == null) EdPlanProcessor = new EducationalPlanProcessor();
         EdPlanProcessor.CreateEducationalProgram(fileName);
     }
 }