private void systemSettingsToolStripMenuItem_Click(object sender, EventArgs e) { ViewProductsForm vpf1 = new ViewProductsForm(); vpf1.AddButtonsOnClosingViewProductsFormEvent += vpf1_AddButtonsOnClosingViewProductsFormEvent; vpf1.Show(); }
private void btnViewProducts_Click(object sender, EventArgs e) { ViewProductsForm vpf1 = new ViewProductsForm(); vpf1.AddButtonsOnClosingViewProductsFormEvent += vpf1_AddButtonsOnClosingViewProductsFormEvent; vpf1.Show(); }