Ejemplo n.º 1
0
        public static LegendEditorForm CreateAndShowGRP(int GroupHandle)
        {
            LegendEditorForm newLeg = new LegendEditorForm(GroupHandle, false, Program.frmMain.MapMain);

            Program.frmMain.AddOwnedForm(newLeg);
            newLeg.Show(Program.frmMain.dckPanel, WeifenLuo.WinFormsUI.Docking.DockState.Float);
            return(newLeg);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 为指定的层创建和显示属性编辑框
        /// </summary>
        public static LegendEditorForm CreateAndShowLYR(int layerHandle)
        {
            Size             sz        = new Size(385, 430);//后续,用C#提供的保存窗体的大小方法
            LegendEditorForm newLegend = new LegendEditorForm(layerHandle, true, Program.frmMain.MapMain);

            newLegend.Size = sz;
            Program.frmMain.AddOwnedForm(newLegend);
            newLegend.Show(Program.frmMain.dckPanel, WeifenLuo.WinFormsUI.Docking.DockState.Float);
            return(newLegend);
        }