/// <summary> /// 刷新仓位状态 /// </summary> /// <param name="L"></param> /// <param name="R"></param> /// <param name="C"></param> /// <param name="s"></param> public void RefreshHouseCellStatus(int L, int R, int C, CellStoreStatus s) { if(this.wareHouseControl1.InvokeRequired) { this.Invoke(new delegateUIRefreshCellStatus(ThreadUIRefreshCellStatus), L, R, C, s); } else { ThreadUIRefreshCellStatus(L, R, C, s); } }
private void ThreadUIRefreshCellStatus(int L, int R, int C, CellStoreStatus s) { this.wareHouseControl1.RefreshCellStoreStatus(L, R, C, s); }
public void RefreshCellStoreStatus(int L,int R,int C,CellStoreStatus s) { if(L<1 || R<1 || C<1) return; _LayersList[L - 1].RowsList[R - 1].CellsList[C - 1].CellStatus = s; }