コード例 #1
0
ファイル: Form1.cs プロジェクト: mike9739/UnivMng
 private void Insert_Click(object sender, EventArgs e)
 {
     //se se
     if (tabControl1.SelectedTab == Department)
     {
         Insert_department insert_deparment = new Insert_department();
         insert_deparment.ShowDialog();
     }
     else if (tabControl1.SelectedTab == Professor)
     {
         insert_professor insert_Professor = new insert_professor();
         insert_Professor.ShowDialog();
     }
     else if (tabControl1.SelectedTab == Courses)
     {
         insertcourse insertcourse = new insertcourse();
         insertcourse.ShowDialog();
     }
     else if (tabControl1.SelectedTab == Periods)
     {
         Insert_periods insert_Periods = new Insert_periods();
         insert_Periods.ShowDialog();
     }
     else if (tabControl1.SelectedTab == TimeBlocks)
     {
         insert_timeblock insert_Timeblock = new insert_timeblock();
         insert_Timeblock.ShowDialog();
     }
     else if (tabControl1.SelectedTab == Classroom)
     {
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: mike9739/UnivMng
        private void Insert_Click(object sender, EventArgs e)
        {
            //se crea la instancia para desplegar el dialogo de insertar departmaneto
            Insert_department insert_deparment = new Insert_department();

            insert_deparment.ShowDialog();
        }