コード例 #1
0
ファイル: PlaceOrder.cs プロジェクト: kalana25/CafeProject
 private void PlaceOrder_Load(object sender, EventArgs e)
 {
     gvFoodBevarage.DataSource = order.RetrieveFoodBevarage();
     gvFoodBevarage.Refresh();
     gvMenu.DataSource = setMenu.Retrieve();
     gvMenu.Refresh();
     ConfigGridView();
 }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }