public void LoadRecords(String aFilename) { if (aFilename.ToLower().EndsWith(".rtd")) { this.RecordModel.Add(Serializer.GetListFromFile <Record>(aFilename), true); } else if (aFilename.ToLower().EndsWith(".csv")) { RecordCSVManager csvManager = new RecordCSVManager(); this.RecordModel.Add(csvManager.Read(aFilename), true); } else { MessageBox.Show("Error Msg"); } }
public void ImportCV(String aFilename) { RecordCSVManager csvManager = new RecordCSVManager(); this.RecordModel.Add(csvManager.Read(aFilename), false); }