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("发生错误!");
            }
        }
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if (PointsDt.Rows.Count<=1)
            {
                MessageBox.Show("数据不完整,无法完成分析!","提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);
                return;
            }
            List<double> listDouble = new List<double>();
            for (int i = 0; i < PointsDt.Rows.Count; i++)
            {
                listDouble.Add((double)PointsDt.Rows[i][0]);
                listDouble.Add((double)PointsDt.Rows[i][1]);
            }
            try
            {
                 CSharpAPIsClass CSHarp = new CSharpAPIsClass();

            CSharpAPIsClass.WindowInfo[] df = CSHarp.GetAllDesktopWindows();

            for (int i = 0; i < df.Length; i++)
            {
                if (df[i].szWindowName == "地形剖面分析" || df[i].szWindowName == "地形剖面")
                {
                    CSharpAPIsClass.RECT rc = new CSharpAPIsClass.RECT();

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

                    CSHarp.ToChange(df[i].hWnd, false);
                }
            }
                this.m_Sgworld.Analysis.CreateTerrainProfile(listDouble.ToArray());
            }
            catch
            {
            }
        }