private void PlaceOrder_Load(object sender, EventArgs e) { gvFoodBevarage.DataSource = order.RetrieveFoodBevarage(); gvFoodBevarage.Refresh(); gvMenu.DataSource = setMenu.Retrieve(); gvMenu.Refresh(); ConfigGridView(); }
private void ManageFood_Load(object sender, EventArgs e) { DataTable result = discount.Retrieve(); gvDiscounts.DataSource = result; gvDiscounts.Refresh(); btnSave.Enabled = false; btnDelete.Enabled = false; txtid.Enabled = false; EnableDisableTextBoxes(false); cmbMenu.DataSource = setMenu.Retrieve(); cmbMenu.DisplayMember = "Name"; cmbMenu.ValueMember = "Id"; cmbMenu.SelectedIndex = -1; }
private void ManageSetMenu_Load(object sender, EventArgs e) { foodList = food.Retrieve(); cmbFood.DataSource = foodList; cmbFood.DisplayMember = "Name"; cmbFood.ValueMember = "Id"; bevarageList = bevarage.Retrieve(); cmbBevarage.DataSource = bevarageList; cmbBevarage.DisplayMember = "Name"; cmbBevarage.ValueMember = "Id"; DataTable result = setmenu.Retrieve(); gvSetMenu.DataSource = result; gvSetMenu.Refresh(); btnSave.Enabled = false; btnDelete.Enabled = false; txtid.Enabled = false; EnableDisableTextBoxes(false); EnableDisableItemControlSection(false); btnMenuItemDelete.Enabled = false; }