private void button1_Click(object sender, EventArgs e) { if (GmSelection.order_flag == 1) { GmAddClass Frm_gmAddClass = new GmAddClass(); Frm_gmAddClass.Show(); } else { PimAddClass Frm_pimAddClass = new PimAddClass(); Frm_pimAddClass.Show(); } }
private void btn_GmAdd_Click(object sender, EventArgs e) { if (GmSelection.order_flag == 1) { PimAdd Frm_pimAdd = new PimAdd(); Frm_pimAdd.Show(); } else if (GmSelection.teacher_flag == 1) { GmAddTeacher Frm_gmAddTeacher = new GmAddTeacher(); Frm_gmAddTeacher.Show(); } else { GmAddClass Frm_gmAddClass = new GmAddClass(); Frm_gmAddClass.Show(); } }