Exemplo n.º 1
0
 private int ReadCSVData()
 {
     if (DialogExcelDataLoad.ShowDialog() == DialogResult.OK)
     {
         ConstantMethod.SaveDirectoryByFileDialog(DialogExcelDataLoad);
         int num = ConstantMethod.IsWhichFile(DialogExcelDataLoad.FileName);
         if (num == Constant.CsvFile)
         {
             evokWork.LoadCsvData(DialogExcelDataLoad.FileName);
         }
         if (num == Constant.ExcelFile)
         {
             evokWork.LoadExcelData(DialogExcelDataLoad.FileName);
         }
     }
     return(0);
 }