private MoveableTable CreateMoveableTable(object obj) { var refTab = obj as ReferenceTable; var movTb = new MoveableTable { Id = cont, Image = refTab.Image, Location = refTab.Location, Name = $"temp_{cont}", Size = refTab.Size }; movTb.BindedEntity = new TableDto ( caption: $"Mesa {cont}", moveableTableId: cont, mapTrackId: currentMapTrackId, state: TableStateEnum.DISPONIBLE, shape: refTab.Shape, maxChairs: refTab.Shape.GetId <byte>() ); return(movTb); }
public FormTableStatus(MoveableTable tableObj, IOrderSvc orderSvc) { InitializeComponent(); cBoxState.DataSource = Enum.GetValues(typeof(TableStateEnum)); _currentOrder = new OrderDto { Table = tableObj.BindedEntity }; LoadStockMeals(); LoadTableDetail(); this.LoadImage(tableObj); _orderSvc = orderSvc; }