/// <summary> /// 将默认的构造函数私有化 /// 实现单例模式 /// </summary> /// <returns></returns> public static staticpara createform() { if ((defstaticpara == null) || (defstaticpara.IsDisposed == true)) { defstaticpara = new staticpara(); } return defstaticpara; }
private void 模型参数修改ToolStripMenuItem_Click(object sender, EventArgs e) { setparaform = staticpara.createform(); /* setparaform.MdiParent = this; setparaform.WindowState = FormWindowState.Maximized; setparaform.Show(); setparaform.Focus(); this.Width++; this.Invalidate(); this.Width--; */ setparaform.Show(); }
private void 模型参数修改ToolStripMenuItem_Click(object sender, EventArgs e) { setparaform = staticpara.createform(); setparaform.MdiParent = this; setparaform.Show(); setparaform.Focus(); }