/// <summary> /// The toolStripButton2_Click /// </summary> /// <param name="sender">The sender<see cref="object"/></param> /// <param name="e">The e<see cref="EventArgs"/></param> private void toolStripButton2_Click(object sender, EventArgs e) { foreach (Form item in Application.OpenForms) { if (item is SearchProducts) { item.Activate(); return; } } SearchProducts prods = new SearchProducts() { MdiParent = this }; prods.Show(); }
/// <summary> /// Initializes a new instance of the <see cref="SearchProducts"/> class. /// </summary> public SearchProducts() { InitializeComponent(); thisForm = this; }
private void Products_FormClosing(object sender, FormClosingEventArgs e) { SearchProducts.UnhideForm(); }