private void frmServiceCenter_Load(object sender, EventArgs e)
        {
            dgvServiceCenterfresh();
            dgvServiceCenter.RowHeadersVisible = false;



            frmGarage fg = new frmGarage();
        }
Ejemplo n.º 2
0
        private void garageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //    prevent open the same form again when it opened
            bool Isopen = false;

            foreach (Form f8 in Application.OpenForms)
            {
                if (f8.Text == "Garage")
                {
                    Isopen = true;
                    f8.BringToFront();
                    break;
                }
            }

            if (Isopen == false)
            {
                frmGarage f = new frmGarage();
                f.Show();
            }
        }