public static QHFrom CreateForm() { if (_danli == null) { _danli = new QHFrom(); } return(_danli); }
private void toolStripButton11_Click(object sender, EventArgs e) { if (!FilterClass.tcgl()) { MessageBox.Show("无权操作!"); return; } QHFrom yggl = QHFrom.CreateForm(); yggl.MdiParent = this; yggl.Parent = panel3; yggl.WindowState = FormWindowState.Maximized; yggl.Show(); yggl.Focus(); }
private void QHFrom_FormClosing(object sender, FormClosingEventArgs e) { _danli = null; }