Example #1
0
 public static SteelNetRate GetInstance()
 {
     if (weform == null || weform.IsDisposed)
     {
         weform = new SteelNetRate();
     }
     return(weform);
 }
Example #2
0
        private void barButtonItem钢网成本占比_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool isopen = true;

            foreach (Form f in this.MdiChildren)
            {
                if (f.Name == "SteelNetRate")
                {
                    f.Visible = true;
                    f.Activate();
                    f.WindowState = FormWindowState.Maximized;
                    isopen        = false;
                    break;
                }
            }
            if (isopen)
            {
                SteelNetRate Frm = SteelNetRate.GetInstance();
                Frm.MdiParent   = this;
                Frm.WindowState = FormWindowState.Maximized;
                Frm.Show();
            }
        }