Exemplo n.º 1
0
        /// <summary> 以非模态、不阻塞的方式显示窗口 </summary>
        public new void Show()
        {
            Application.ShowModelessDialog(null, this);
            //
            Application.DocumentManager.MdiActiveDocument.CommandWillStart += MdiActiveDocumentOnCommandWillStart;

            StartCommand();
        }
Exemplo n.º 2
0
        private void cmdBalanceSite_Click(object sender, RoutedEventArgs e)
        {
            App.ShowModelessDialog(EW.EW_Forms.ewFrms.fBalanceSite);

            if (EW.EW_Forms.ewFrms.fBalanceSite.getExcelData())
            {
                EW.EW_Forms.ewFrms.fBalanceSite.initForm();
            }
        }
Exemplo n.º 3
0
        public static void PlotRun()
        {
            var count = System.Windows.Forms.Application.OpenForms.Count;

            if (count == 0)
            {
                MainDlg createTempltDlg = new MainDlg();
                AcadApp.ShowModelessDialog(createTempltDlg);
            }
        }
Exemplo n.º 4
0
 public void MoveSymbol()
 {
     if (!IsLoadDataSource())
     {
         return;
     }
     if (!PublicMethod.Instance.IsExecuteSystemCMD("yd"))
     {
         var ms = new MoveSymbol();
         Application.ShowModelessDialog(ms);
     }
 }
Exemplo n.º 5
0
 public void Mxjl()
 {
     if (!IsLoadDataSource())
     {
         return;
     }
     if (!PublicMethod.Instance.IsExecuteSystemCMD("MXJL"))
     {
         var MxToYxDlg = new ConnectMxToYx();
         Application.ShowModelessDialog(MxToYxDlg);
     }
 }
Exemplo n.º 6
0
        private void ShowSplash()
        {
            _ss = new Splash();

            // Rather than trusting these properties to be set
            // at design-time, let's set them here

            _ss.StartPosition   = FormStartPosition.CenterScreen;
            _ss.FormBorderStyle = FormBorderStyle.None;
            _ss.Opacity         = 0.8;
            _ss.TopMost         = true;
            _ss.ShowInTaskbar   = false;

            _ss.Opacity = 0;

            // Now let's disply the splash-screen
            Application.ShowModelessDialog(new AcadMainWindow(), _ss, false);
            _ss.Update();

            var opacityStep = 0.1;

            while (_ss.Opacity < 1)
            {
                _ss.Opacity += opacityStep;
                Thread.Sleep(10);
            }


            while (_ss.pBar.Value < _ss.pBar.Maximum)
            {
                _ss.pBar.Value += 1;
                Thread.Sleep(10);
            }

            Thread.Sleep(500);

            while (_ss.Opacity > 0)
            {
                _ss.Opacity -= opacityStep;
                Thread.Sleep(10);
            }

            // This is where your application should initialise,
            // but in our case let's take a 3-second nap

            _ss.Close();
        }
Exemplo n.º 7
0
 public void Sbdw()
 {
     if (!IsLoadDataSource())
     {
         return;
     }
     if (!PublicMethod.Instance.IsExecuteSystemCMD("SBDW"))
     {
         if (Menu.MenuControl.fp == null)
         {
             Menu.MenuControl.fp = new FixedPosition();
         }
         else
         {
             Menu.MenuControl.fp.Close();
             Menu.MenuControl.fp = new FixedPosition();
         }
         Application.ShowModelessDialog(Menu.MenuControl.fp);
     }
 }
Exemplo n.º 8
0
 public void Zbdw()
 {
     if (!IsLoadDataSource())
     {
         return;
     }
     if (!PublicMethod.Instance.IsExecuteSystemCMD("ZBDW"))
     {
         if (Menu.MenuControl.coordinateFix == null)
         {
             Menu.MenuControl.coordinateFix = new CoordinateFix();
         }
         else
         {
             Menu.MenuControl.coordinateFix.Close();
             Menu.MenuControl.coordinateFix = new CoordinateFix();
         }
         Application.ShowModelessDialog(Menu.MenuControl.coordinateFix);
     }
 }
Exemplo n.º 9
0
 public void zmcc()
 {
     if (!IsLoadDataSource())
     {
         return;
     }
     if (!PublicMethod.Instance.IsExecuteSystemCMD("zmc1"))
     {
         var g = new G3EObject();
         //id=630802963 fid=630802964 fno=148
         var ee = new selectEntityArgs {
             g3eObject = g
         };
         g.G3E_FID = 630802964;
         g.G3E_ID  = 630802963;
         g.G3E_FNO = 148;
         var tt = new JLBMap(ee);
         Application.ShowModelessDialog(tt);
     }
 }
Exemplo n.º 10
0
        runApp()
        {
            PPF_APP.getFileToProcess();
            if ((TXTFILE == null))
            {
                return;
            }

            //FILEOUT = PPF_Process.procPntFile(TXTFILE);
            PPF_Process.procPntFile(TXTFILE);
            PPF_PostProcess.postProcPntFile();

            fPntDesc = null;

            fPntDesc = PPF_PntDesc.frmPntDesc;
            PPF_PntDesc.loadForm();
            Application.ShowModelessDialog(fPntDesc);
            //fPntDesc.ShowDialog();
            //Point Description form
            //Application.ShowModalDialog(fPntDesc);
        }
Exemplo n.º 11
0
 public void Show()
 {
     if (!IsLoadDataSource())
     {
         return;
     }
     if (!PublicMethod.Instance.IsExecuteSystemCMD("fidcx"))
     {
         if (Menu.MenuControl.query == null)
         {
             Menu.MenuControl.query = new Query();
         }
         else
         {
             Menu.MenuControl.query.Close();
             Menu.MenuControl.query = new Query();
         }
         Menu.MenuControl.query.setpanel(0);
         Application.ShowModelessDialog(Menu.MenuControl.query);
     }
 }
Exemplo n.º 12
0
 public void OpenCompareDwgForm()
 {
     Application.ShowModelessDialog(new Form1());
 }
Exemplo n.º 13
0
 private void cmdBuildAreas_Click(object sender, EventArgs e)
 {
     this.Hide();
     App.ShowModelessDialog(EW_Forms.ewFrms.fBuildAreas);
 }