Пример #1
0
        private void toolStripButtonMonHoc_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
            {
                if (f.Name == "frmMonHoc")
                {
                    f.Activate();
                    return;
                }
            }
            frmMonHoc mh = new frmMonHoc();

            mh.MdiParent = this;
            mh.Show();
        }
Пример #2
0
        private void barMonHoc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.KiemTraTonTai(typeof(frmMonHoc));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmMonHoc f = new frmMonHoc();
                f.MdiParent = this;
                f.Show();
            }
        }
Пример #3
0
        private void btnMonhoc_Click(object sender, EventArgs e)
        {
            frmMonHoc mh = new frmMonHoc();

            mh.ShowDialog();
        }