Ejemplo n.º 1
0
 public static StandardPoint GetInstance()
 {
     if (weform == null || weform.IsDisposed)
     {
         weform = new StandardPoint();
     }
     return(weform);
 }
Ejemplo n.º 2
0
        private void barButtonItem标准单点成本_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool isopen = true;

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