Ejemplo n.º 1
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();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchProducts"/> class.
 /// </summary>
 public SearchProducts()
 {
     InitializeComponent();
     thisForm = this;
 }
Ejemplo n.º 3
0
 private void Products_FormClosing(object sender, FormClosingEventArgs e)
 {
     SearchProducts.UnhideForm();
 }