private void btnAddNewItems_Click(object sender, EventArgs e) { AddNewItem ai = AddNewItem.getInstance(); this.Hide(); ai.Show(); }
public static AddNewItem getInstance() { if (uniqueInstance == null) { uniqueInstance = new AddNewItem(); } return(uniqueInstance); }
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(); }