public void InitializationComplete() { try { MainClass.InitData(); // MainClass.SendDishList(); MainClass.CurentMaster = DownTimeiniFile.GetMaster(); } catch (Exception e) { Utils.ToLog("InitializationComplete() " + e.Message); } }
public void OnClockTick() { //if (File.Exists(@"C:\Aloha\Check\FiskalChanger.exe")) //А касса ли это? //AlohaEventVoids.TrySendZReport(); /* * if (MainClass.TrPosxEnable) * { * if (MainClass.DeletedPayment > -1) * { * * if (MainClass.DeletedPaymentTry < 10) * { * if (DateTime.Now > MainClass.DeletedPaymentDateTime.AddSeconds(1)) * { * Utils.ToCardLog("Удаляяю оплату. Попытка: " + MainClass.DeletedPaymentTry); * if (AlohaTSClass.DeletePayment(MainClass.DeletedPaymentCheck, MainClass.DeletedPayment)) * { * Utils.ToCardLog("Успешно удалил оплату. "); * MainClass.DeletedPayment = -1; * MainClass.DeletedPaymentTry = 0; * } * else * { * MainClass.DeletedPaymentTry++; * } * } * } * else * { * MainClass.DeletedPayment = -1; * MainClass.DeletedPaymentTry = 0; * } * } * * } */ //Стоп лист if (MainClass.TimeTic.AddSeconds(300) < DateTime.Now) { MainClass.TimeTic = DateTime.Now; /* * if (iniFile.StopListOff) * { * return; * } */ if ((MainClass.CurentMaster != -1) || MainClass.IamIsMaster) { if ((MainClass.CurentMaster == AlohaTSClass.GetTermNum()) || MainClass.IamIsMaster) { MainClass.WHThreadThreadStopList.Set(); } } else { MainClass.CurentMaster = DownTimeiniFile.GetMaster(); } } //Сообщение if (Shtrih2.NeedShowMsg) { Shtrih2.ShowMessageExt(); } //throw new NotImplementedException(); }