Exemple #1
0
        internal void importData(ParkStudent parkStudent)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Multiselect = true;
            ofd.ShowDialog();
            string[] files = ofd.FileNames;
            foreach (var str in files)
            {
                string filetype = str.Substring(str.LastIndexOf('.') + 1);

                switch (filetype)
                {
                case "xls": ExcelImport(str, parkStudent);
                    break;

                case "sqlite": CopySqlite(str, parkStudent);
                    break;
                }
            }
        }
Exemple #2
0
 private void ExcelImport(string str, ParkStudent parkStudent)
 {
     ImportFile.ImoprtExcel(str, parkStudent);
 }
Exemple #3
0
 private void CopySqlite(string str, ParkStudent parkStudent)
 {
 }