public static spform CreateForm() { if (_danli == null) { _danli = new spform(); } return(_danli); }
private void toolStripButton6_Click(object sender, EventArgs e) { if (!FilterClass.spgl()) { MessageBox.Show("无权操作!"); return; } spform shangpinguanli = spform.CreateForm(); shangpinguanli.MdiParent = this; shangpinguanli.Parent = panel3; shangpinguanli.WindowState = FormWindowState.Maximized; shangpinguanli.Show(); }
private void spform_FormClosing(object sender, FormClosingEventArgs e) { _danli = null; }