private void getMenuCategory()
 {
     cbCurrentCategory.Items.Clear();
     category = ApiClass.getCategory(ForLoginEstVO.getEstUserID(), "all");
     category.Sort();
     for (int x = 0; x < category.Count; x++)
     {
         cbCurrentCategory.Items.Add(category[x]);
     }
 }
Пример #2
0
        private void fillCategory()
        {
            cbCategory.Items.Clear();
            cbCategory.Items.Add("");
            ArrayList category = new ArrayList();

            category = ApiClass.getCategory(ForLoginEstVO.getEstUserID(), "all_active");
            category.Sort();
            for (int x = 0; x < category.Count; x++)
            {
                cbCategory.Items.Add(category[x]);
            }
        }
        private void frmEditProduct_Load(object sender, EventArgs e)
        {
            cbCategory.Enabled = false;
            txtPrice.Enabled   = false;
            btnChange.Enabled  = false;
            btnSave.Enabled    = false;

            ArrayList product = new ArrayList();

            product = ApiClass.getProduct(ForEstablishmentLogin.ForLoginEstVO.getEstUserID(), "all");
            for (int x = 0; x < product.Count; x++)
            {
                cbItemName.Items.Add(product[x]);
            }
            ArrayList category = new ArrayList();

            category = ApiClass.getCategory(ForEstablishmentLogin.ForLoginEstVO.getEstUserID(), "all");
            for (int x = 0; x < category.Count; x++)
            {
                cbCategory.Items.Add(category[x]);
            }
        }