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); }
public void Clear() => ProductEditor.ClearProducts();
public Task <List <ComparedProduct> > ComparePrices(List <ScannedProduct> products) { // return Task.Run(() => ProductEditor.ComparePrices(Tools.Utils.ProductsPath)); return(Task.Run(() => ProductEditor.ComparePrices(products, productsPath))); }
public Task <List <ScannedProduct> > FilterText(string input) { // return Task.Run(() => ProductEditor.FilterScanned(input, Tools.Utils.ProductsPath)); return(Task.Run(() => ProductEditor.FilterScanned(input, productsPath))); }
public Task <string> ComparePrices() { return(Task.Run(() => ProductEditor.ComparePrices(Tools.Utils.ProductsPath))); }
public Task <string> FilterText(string input) { return(Task.Run(() => ProductEditor.FilterScanned(input, Tools.Utils.ProductsPath))); }