public static dxform CreateForm() { if (_danli == null) { _danli = new dxform(); } return(_danli); }
private void toolStripButton7_Click(object sender, EventArgs e) { if (!FilterClass.dxgl()) { MessageBox.Show("无权操作!"); return; } dxform duanxinguanli = dxform.CreateForm(); duanxinguanli.MdiParent = this; duanxinguanli.Parent = panel3; duanxinguanli.WindowState = FormWindowState.Maximized; duanxinguanli.Show(); }
private void dxform_FormClosing(object sender, FormClosingEventArgs e) { _danli = null; }