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; } } }
private void ExcelImport(string str, ParkStudent parkStudent) { ImportFile.ImoprtExcel(str, parkStudent); }
private void CopySqlite(string str, ParkStudent parkStudent) { }