示例#1
0
        public static List <SalesAndCollectionModel> LoadAllSalesAndCollections()
        {
            FileSystemUtility.CopyFile(Environment.CurrentDirectory + salesAndCollectionFilePath, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Invoiceasy" + salesAndCollectionFilePath, false);

            SalesAndCollectionData = CsvHelperUtility.ReadDataFromFile <SalesAndCollectionModel, SalesAndCollectionModelMap>(salesAndCollectionFilePath);
            SalesAndCollectionData = SalesAndCollectionData.OrderBy(x => x.Date).ToList();
            return(SalesAndCollectionData);
        }