Exemplo n.º 1
0
 /// <summary>
 /// 将默认的构造函数私有化
 /// 实现单例模式
 /// </summary>
 /// <returns></returns>
 public static staticpara createform()
 {
     if ((defstaticpara == null) || (defstaticpara.IsDisposed == true))
     {
         defstaticpara = new staticpara();
     }
     return defstaticpara;
 }
Exemplo n.º 2
0
        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();
            
        }
Exemplo n.º 3
0
        private void 模型参数修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            setparaform = staticpara.createform();
            setparaform.MdiParent = this;

            setparaform.Show();
            setparaform.Focus();
        }