Exemple #1
0
        /// <summary>
        /// 绘图型形成缓冲区
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            try
            {
                En = "DrawGeo";
                MenuIDCommand.RunMenuCommand(this.SgWorld, CommandParam.ICreatePolygon, CommandParam.PCreatePolygon);
                LockRButton = false;

                this.Select.Checked        = false;
                this.simpleButton2.Checked = true;
            }
            catch (Exception)
            {
            }
        }
Exemple #2
0
        public override void OnClick()
        {
            try
            {
                MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.ISlopeDirections, CommandParam.PSlopeDirections);
                CSharpAPIsClass CSHarp          = new CSharpAPIsClass();
                CSharpAPIsClass.WindowInfo[] df = CSHarp.GetAllDesktopWindows();

                for (int i = 0; i < df.Length; i++)
                {
                    if (df[i].szWindowName == "Slope Analysis Properties")
                    {
                        CSharpAPIsClass.RECT rc = new CSharpAPIsClass.RECT();

                        rc = CSharpAPIsClass.getRect(df[i].hWnd);

                        CSHarp.ToChange(df[i].hWnd, false);

                        //FrmAutCover fcov = new FrmAutCover(df[i].szWindowName);

                        //Point p = new Point();

                        //p.X = rc.Left;

                        //p.Y = rc.Top;

                        //fcov.Location = p;

                        //fcov.Show();

                        break;
                    }
                }
            }
            catch
            {
                MessageBox.Show("发生错误!");
            }
        }
        public override void OnClick()
        {
            // 2013-04-10 张航宇
            // 自定义的产生了一系列问题:一次性允许做多个调整,第一次以后有可能出错;清除目标会将原来保留下来的也清除掉
            MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.IModifyTerrain, CommandParam.PModifyTerrain);

            //FrmModifyTerrain fmTerrModifier = new FrmModifyTerrain(this);
            //fmTerrModifier.SgWorld = this.m_SkylineHook.SGWorld;
            //fmTerrModifier.TerraExplorer = this.m_SkylineHook.TerraExplorer;
            //try
            //{
            //    if (!fmTerrModifier.IsDisposed)
            //    {
            //        this.AddOwnedForm(fmTerrModifier);
            //        fmTerrModifier.Show();
            //    }
            //}
            //catch
            //{

            //    MessageBox.Show("发生错误!");

            //}
        }
Exemple #4
0
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.ICreateHole, CommandParam.PCreateHole);
 }
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.ISlopePalettess, CommandParam.PSlopePalettess);
 }
Exemple #6
0
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.ISlopeColorMap, CommandParam.PSlopeColorMap);
 }
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.IWater, CommandParam.PWater);
     m_Flag = !m_Flag;
 }
Exemple #8
0
 protected override void SetTool()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.IArea, CommandParam.PArea);
 }
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.IBestpath, CommandParam.PBestpath);
 }
Exemple #10
0
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(m_SkylineHook.SGWorld, CommandParam.ISaveCamera, CommandParam.PSaveCamera);
 }
Exemple #11
0
 protected override void SetTool()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.IInfomation, CommandParam.PInfomation);
 }
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.ICollisionDetection, CommandParam.PCollisionDetection);
     m_Flag = !m_Flag;
 }
Exemple #13
0
 public override void OnClick()
 {
     throw new NotImplementedException();
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.ILineOfSight, CommandParam.PLineOfSight);
 }
Exemple #14
0
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.ITerrainProfile, CommandParam.PTerrainProfile);
 }
Exemple #15
0
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.ISelect, CommandParam.PSelect);
 }
Exemple #16
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     this.lock_OnRButton = false;
     MenuIDCommand.RunMenuCommand(this.SgWorld, CommandParam.ICreatePolygon, CommandParam.PCreatePolygon);
 }
Exemple #17
0
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.Iearthwork, CommandParam.Pearthwork);
 }
Exemple #18
0
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.IFlood, CommandParam.PFlood);
 }
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.IContourPallets, CommandParam.PContourPallets);
 }
 public override void OnClick()
 {
     MenuIDCommand.RunMenuCommand(this.m_SkylineHook.SGWorld, CommandParam.ILineOfSight, CommandParam.PLineOfSight);
 }