private void barBtnStudentList_ItemClick(object sender, ItemClickEventArgs e) { var form = CheckExist(typeof(FormStudent)); if (form != null) { form.Activate(); } else { var formStudent = new FormStudent { MdiParent = this }; formStudent.Show(); } }
private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { var form = CheckExist(typeof(FormStudent)); if (form != null) { form.Activate(); } else { var formStudent = new FormStudent { MdiParent = this }; formStudent.Show(); } }
private void barBtnRefesh_ItemClick(object sender, ItemClickEventArgs e) { var form = CheckExist(typeof(FormStudent)); if (form != null) { form.Close(); var formStudent = new FormStudent { MdiParent = this }; formStudent.Show(); } form = CheckExist(typeof(FormRoom)); if (form != null) { form.Close(); var formRoom = new FormRoom { MdiParent = this }; formRoom.Show(); } }