/// <summary>
        /// Open the AddItem Form with a supplied ID
        /// </summary>
        private void EditItems()
        {
            DataRow drv = gridView1.GetFocusedDataRow();
            if (drv == null) return;

            int itemId = Convert.ToInt32(drv["ID"]);
            AddSupply addItm = new AddSupply(itemId, true);
            MainWindow.ShowForms(addItm);

            DataTable dtItem;
            Items itm = new Items();

            //if (txtItemName.Text != "")
            //{
            //    string keyword = txtItemName.Text;
            //    dtItem = itm.GetItemByKeyword(keyword);
            //}
            //else if (selectedCat != 0)
            //{
            //    dtItem = itm.GetItemsByCategory(selectedCat);
            //    toolStripButtonAddItems.Enabled = false;
            //    toolStripButtonEditItem.Enabled = false;
            //}
            //else if (selectedSubCat != 0)
            //{
            //    dtItem = itm.GetItemsBySubCategory(selectedSubCat);
            //    toolStripButtonAddItems.Enabled = true;
            //    toolStripButtonEditItem.Enabled = false;
            //}
            //else
            {
                dtItem = itm.GetAllItems(1);
            }
            PopulateItemList(dtItem);
        }
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     if (_catId == 0) return;
     AddSupply addItm = new AddSupply(_catId, false);
     MainWindow.ShowForms(addItm);
 }