/// <summary>
 /// The UnhideForm
 /// </summary>
 public static void UnhideForm()
 {
     if (thisForm != null)
     {
         thisForm.RetrieveProducts();
         thisForm.Show();
     }
 }
Beispiel #2
0
        /// <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();
        }