private void UpdateButton(UpDownMessage upDownMessage = null) { if (upDownMessage == null) { current.Post((o) => { ButtonService.UpdateButtons(); }, null); } else { current.Post((o) => { ButtonService.UpdateButton(upDownMessage); }, null); } }
public void WaitPut(List <LatticeInfo> latticeInfoList, string barCode) { latticeInfoList.ForEach(o => { if (o.Product.Exists(p => p.BarCode == barCode && !p.IsComplete)) { SlaveInfoService.SetLatticeStatus(o, LatticeStatus.WaitPut); SlaveInfoService.SetProductStatus(o, barCode, ProductStatus.WaitPut); } }); current.Post((o) => { ButtonService.UpdateButton(latticeInfoList); }, null); SlaveInfoService.SaveAync(); }