public IList <FootballClubExtenions> GetFootballClubList(IFileReading FileRead)
 {
     FootballClubList = new List <FootballClubExtenions>();
     //fileRead.readFile will return each line from the raw file
     FileRead.ReadFile().ToList().ForEach(i => FootballClubList.Add(new CreateFootballClub().CreateClub(i)));
     return(FootballClubList);
 }
 public void FileSelection_Click()
 {
     using (OpenFileDialog openFileDialog = new OpenFileDialog())
     {
         openFileDialog.Multiselect = false;
         openFileDialog.Filter      = "CSV,DAT Files|*.dat;*.csv";
         if (openFileDialog.ShowDialog(myView) == DialogResult.OK)
         {
             myView.TBPath.Text = openFileDialog.FileName;
             if (System.IO.Path.GetExtension(openFileDialog.FileName).ToLower() == ".dat")
             {
                 iFileRead = new DatFileReading(myView.TBPath.Text);
             }
             else
             {
                 iFileRead = new CSVFileReading(myView.TBPath.Text);
             }
         }
     }
 }