internal void EnableForm(TableOrder tableOrder) { thisTableOrder = tableOrder; TextBlock_TableNum.Text = "TABLE " + tableOrder.GetTableNumber(); TableTableOrder.ConvertTableOrderToTableRow(tableOrder); UpdateSumTaxTotal(thisTableOrder.GetSumTaxTotal()); if (thisTableOrder.GetTableStatus() == TableOrder.PRESETTLEMENT_BILL) { DisableTableTableOrder(); } else { EnableTableTableOrder(); } BrushConverter brush = new BrushConverter(); Rectangle1.Fill = (Brush)brush.ConvertFrom("#363636"); Rectangle2.Fill = (Brush)brush.ConvertFrom("#363636"); Rectangle3.Fill = (Brush)brush.ConvertFrom("#363636"); TextBlock_TableNum.Foreground = (Brush)brush.ConvertFrom("#363636"); TextBlock_ItemOrderedHeader.Foreground = (Brush)brush.ConvertFrom("#363636"); TextBlock_SumHeader.Foreground = (Brush)brush.ConvertFrom("#363636"); TextBlock_SumNum.Foreground = (Brush)brush.ConvertFrom("#363636"); TextBlock_TaxHeader.Foreground = (Brush)brush.ConvertFrom("#363636"); TextBlock_TaxNum.Foreground = (Brush)brush.ConvertFrom("#363636"); TextBlock_TotalHeader.Foreground = (Brush)brush.ConvertFrom("#363636"); TextBlock_TotalNum.Foreground = (Brush)brush.ConvertFrom("#363636"); TextBlock_PrintHeader.Foreground = (Brush)brush.ConvertFrom("#363636"); }
private void Button_PrintDraft_Click(object sender, RoutedEventArgs e) { //Reset selectedTableRow TableTableOrder.ConvertTableOrderToTableRow(thisTableOrder); thisTableOrder.SetTableStatus(TableOrder.PRESETTLEMENT_BILL); DisableTableTableOrder(); disableAddItemForm(); }