Exemple #1
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();
        }
 /// <summary>
 /// The Suppliers_FormClosing
 /// </summary>
 /// <param name="sender">The sender<see cref="object"/></param>
 /// <param name="e">The e<see cref="FormClosingEventArgs"/></param>
 private void Suppliers_FormClosing(object sender, FormClosingEventArgs e)
 {
     SearchSuppliers.UnhideForm();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchSuppliers"/> class.
 /// </summary>
 public SearchSuppliers()
 {
     InitializeComponent();
     thisForm = this;
 }