public void RemoveTable(POSButtonTable ban) { if (ban._Ban.BanID > 0) { mBOBan.Xoa(ban._Ban); } gridFloorPlan.Children.Remove(ban); }
void tbl_Click(object sender, RoutedEventArgs e) { POSButtonTable tbl = (POSButtonTable)sender; if (_OnEventFloorPlan != null) { _OnEventFloorPlan(tbl); } }
public void AddTable(Data.BAN ban) { POSButtonTable tbl = new POSButtonTable(ban, gridFloorPlan);; tbl.IsEnabled = true; tbl._IsEdit = this._IsEdit; tbl.TableDraw(mBOBan._CAIDATBAN); tbl.Click += new RoutedEventHandler(tbl_Click); gridFloorPlan.Children.Add(tbl); }
public void Edit(POSButtonTable ban) { ban._ButtonTableStatus = POSButtonTable.POSButtonTableStatus.Edit; }
public void AddTable(Data.BAN ban) { POSButtonTable tbl = new POSButtonTable(ban,gridFloorPlan); ; tbl.IsEnabled = true; tbl._IsEdit = this._IsEdit; tbl.TableDraw(mBOBan._CAIDATBAN); tbl.Click += new RoutedEventHandler(tbl_Click); gridFloorPlan.Children.Add(tbl); }
public void DrawTable(POSButtonTable tbl) { tbl.TableDraw(mBOBan._CAIDATBAN); }