Example #1
0
        /// <summary>
        /// 年级列表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void subGradeList_Click(object sender, EventArgs e)
        {
            bool b1 = CheckFormIsOpen(typeof(FrmGradeList).Name);

            if (!b1)
            {
                FrmGradeList frmGradeList = new FrmGradeList();
                frmGradeList.MdiParent = this;
                frmGradeList.Show();
            }
        }
Example #2
0
        /// <summary>
        /// 年纪列表 也只能打开一个
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void subGradeList_Click(object sender, EventArgs e)
        {
            bool bl = CheckForm(typeof(FrmGradeList).Name); //type 获取指定类的类对象并使用对象信息

            if (!bl)
            {
                FrmGradeList fGradeList = new FrmGradeList();
                fGradeList.MdiParent = this;
                fGradeList.Show();
            }
        }