public static hyglform CreateForm() { if (_danli == null) { _danli = new hyglform(); } return(_danli); }
private void toolStripButton3_Click(object sender, EventArgs e) { if (!FilterClass.hygl()) { MessageBox.Show("无权操作!"); return; } hyglform huiyuan = hyglform.CreateForm(); huiyuan.MdiParent = this; huiyuan.Parent = panel3; huiyuan.WindowState = FormWindowState.Maximized; huiyuan.Show(); }
private void hyglform_FormClosing(object sender, FormClosingEventArgs e) { _danli = null; }