示例#1
0
        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();
            }
        }
示例#2
0
        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();
            }
        }
示例#3
0
        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();
            }
        }