示例#1
0
 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");
     }
 }
示例#2
0
        public void ImportCV(String aFilename)
        {
            RecordCSVManager csvManager = new RecordCSVManager();

            this.RecordModel.Add(csvManager.Read(aFilename), false);
        }