public static void restoreDiscount() { client.lastDateUpd = new DateTime(); client.barcode = null; client.nameLast = null; client.nameFirst = null; client.points = 0; client.procent = 0.0m; client.addPoints = false; client.discountSet = false; client.showMessaget = true; ClassCheck.discountCalc(); new ClassFunctuon().writeToatl(); }
public static void discountCalc() { if (b != null) { IEnumerable <XElement> elms = ClassCheck.b.Element("check").Elements("product"); foreach (var e in elms) { ClassProducts.product p = ClassProducts.transform(e); ClassCheck.modifProductCheck_(p.ii, p.price, p.Name, p.qty); } ClassCheck.getTotalPrice(); } }
private static void worker_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) { ClassSync.sync = false; new ClassPrintCheck(ClassCheck.b, false); ClassCheck.b = null; ClassCheck.openProductsCheck(); pro = null; ndevis = -1; nfact = -1; ClassProMode.check = null; ClassProMode.devis = false; ClassProMode.modePro = false; ClassDiscounts.restoreDiscount(); var de = ClassETC_fun.findWindow("_W_Message"); if (de != null) { de.Close(); } var mw = ClassETC_fun.findWindow("MainWindow_"); if (mw != null) { mw.IsEnabled = true; } }