Example #1
0
        private void btnAddNewItems_Click(object sender, EventArgs e)
        {
            AddNewItem ai = AddNewItem.getInstance();

            this.Hide();
            ai.Show();
        }
Example #2
0
 public static AddNewItem getInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new AddNewItem();
     }
     return(uniqueInstance);
 }
Example #3
0
        private void btnEditItemCard_Click(object sender, EventArgs e)
        {
            //getting the card id
            String     cardId    = this.itemID;
            AddNewItem addNwItem = AddNewItem.getInstance();

            addNwItem.editcategory(cardId);
            addNwItem.Show();
            this.Hide();
        }