Ejemplo n.º 1
0
        private void registerNewStudentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool Isopen = false;

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

            if (Isopen == false)
            {
                add_student_info asi = new add_student_info();
                asi.Show();
            }
        }
Ejemplo n.º 2
0
        private void addStudentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            add_student_info asi = new add_student_info();

            asi.Show();
        }