/// <summary>
 /// The UnhideForm
 /// </summary>
 public static void UnhideForm()
 {
     if (thisForm != null)
     {
         thisForm.RetrieveSuppliers();
         thisForm.Show();
     }
 }
示例#2
0
        /// <summary>
        /// The tsSuppliers_Click
        /// </summary>
        /// <param name="sender">The sender<see cref="object"/></param>
        /// <param name="e">The e<see cref="EventArgs"/></param>
        private void tsSuppliers_Click(object sender, EventArgs e)
        {
            foreach (Form item in Application.OpenForms)
            {
                if (item is SearchSuppliers)
                {
                    item.Activate();
                    return;
                }
            }

            SearchSuppliers supps = new SearchSuppliers
            {
                MdiParent = this
            };

            supps.Show();
        }