/// <summary> /// Show add new product window clicked. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button_addNewProduct_Click(object sender, EventArgs e) { // create the add new product form and subscribe to "Add" button click events NewProductForm newProductForm = new NewProductForm(this); newProductForm.Show(); }
private void button_addNewProduct_Click(object sender, EventArgs e) { NewProductForm newProductForm = new NewProductForm(); newProductForm.Show(); }
private void button_newItem_Click(object sender, EventArgs e) { View.NewProductForm newProductForm = new View.NewProductForm(); newProductForm.Show(); }