private void ProductSettingForm_Load(object sender, EventArgs e)
        {
            cmbStatus.Items.Add("True");
            cmbStatus.Items.Add("False");
            txtProductID.Visible      = false;
            dgvProductList.DataSource = pb.Products();

            cmbCategoryName.BindCombobox <Category>("CategoryName", "CategoryId", (cb.GetAll()));

            cmbCategoryName.DataSource = cb.GetCategory();
        }
Example #2
0
        private void ProductMenu_Load(object sender, EventArgs e)
        {
            txtID.Visible = false;
            Addition isvalidadition = ab.GetByTableId(_tablesForm.SelectedTable.TableID);

            //var deger = pb.Products();
            //foreach (var item in deger)
            //{
            //	lstProduct.Items.Add(item.ProductName);

            //}
            if (isvalidadition != null)
            {
                lblTotalAdditions.Text = isvalidadition.TotalPrice.ToString();
            }
            lblMasaNo.Text = string.Format("{0} Nolu Masa Şiparişleri", _tablesForm.SelectedTable.TableID);
            cmbCategories.Items.Add("Seçiniz..");
            cmbCategories.BindCombobox <Category>("CategoryName", "CategoryId", (cb.GetAll()));
            cmbCategories.DataSource = cb.GetCategory();
        }