コード例 #1
0
        public void SaveReceipt()
        {
            List <Receipt>        ReceiptsList = (List <Receipt>)DataProcessor.LoadJson <Receipt>(Tools.Utils.ReceiptsPath);
            List <ItemsInReceipt> InRec        = (List <ItemsInReceipt>)DataProcessor.LoadJson <ItemsInReceipt>(Tools.Utils.ItemsInReceiptPath);

            (List <Receipt> ReceiptsAll, List <ItemsInReceipt> InRecAll) = ProductEditor.SaveReceipt(ReceiptsList, currentUser, InRec);
            DataProcessor.SaveJson(ReceiptsAll, Tools.Utils.ReceiptsPath);
            DataProcessor.SaveJson(InRecAll, Tools.Utils.ItemsInReceiptPath);
        }
コード例 #2
0
 public void Clear() => ProductEditor.ClearProducts();
コード例 #3
0
 public Task <List <ComparedProduct> > ComparePrices(List <ScannedProduct> products)
 {
     // return Task.Run(() => ProductEditor.ComparePrices(Tools.Utils.ProductsPath));
     return(Task.Run(() => ProductEditor.ComparePrices(products, productsPath)));
 }
コード例 #4
0
 public Task <List <ScannedProduct> > FilterText(string input)
 {
     // return Task.Run(() => ProductEditor.FilterScanned(input, Tools.Utils.ProductsPath));
     return(Task.Run(() => ProductEditor.FilterScanned(input, productsPath)));
 }
コード例 #5
0
 public Task <string> ComparePrices()
 {
     return(Task.Run(() => ProductEditor.ComparePrices(Tools.Utils.ProductsPath)));
 }
コード例 #6
0
 public Task <string> FilterText(string input)
 {
     return(Task.Run(() => ProductEditor.FilterScanned(input, Tools.Utils.ProductsPath)));
 }