Exemplo n.º 1
0
        private void LoadToolStripByXml()
        {
            ToolStripCollectivity toolStripCollectivity = null;

            try
            {
                string        path          = Path.Combine(MainFormSingleton.AppBaseDirectory, "ToolBarConfig.xml");
                XmlSerializer xmlSerializer = new XmlSerializer(typeof(ToolStripCollectivity));
                FileStream    fileStream    = new FileStream(path, FileMode.Open);
                toolStripCollectivity = (xmlSerializer.Deserialize(fileStream) as ToolStripCollectivity);
                fileStream.Close();
            }
            catch (Exception ex)
            {
                WriteLog.Logger.Error(ex.Message + ex.StackTrace);
                toolStripCollectivity = null;
            }
            this.m_ToolStripConfigXML = toolStripCollectivity;
            if (null != toolStripCollectivity)
            {
                foreach (UserToolStripGroup userToolStripGroup in toolStripCollectivity.UserToolStripGroupCollection)
                {
                    FloatingToolStrip floatingToolStrip = new FloatingToolStrip();
                    floatingToolStrip.Tag  = userToolStripGroup.Tag;
                    floatingToolStrip.Name = userToolStripGroup.Title;
                    this.LoadToolStripByXmlCall0(userToolStripGroup, floatingToolStrip);
                    if (0 != floatingToolStrip.Items.Count)
                    {
                        this.m_ToolStrips.Add(floatingToolStrip);
                    }
                }
                FloatingToolStrip floatingToolStrip2 = this.ToolStripDefaultDeal();
                if (0 != floatingToolStrip2.Items.Count)
                {
                    this.m_ToolStrips.Add(floatingToolStrip2);
                }
            }
            else
            {
                foreach (List <FloatingToolStrip> current in this.m_SubSysType2ToolStripListDic.Values)
                {
                    this.m_ToolStrips.AddRange(current);
                }
            }
        }
Exemplo n.º 2
0
        private FloatingToolStrip ToolStripDefaultDeal()
        {
            FloatingToolStrip floatingToolStrip = new FloatingToolStrip();

            foreach (List <FloatingToolStrip> current in this.m_SubSysType2ToolStripListDic.Values)
            {
                foreach (FloatingToolStrip current2 in current)
                {
                    if (current2.Tag == null || "".Equals(current2.Tag.ToString()))
                    {
                        ToolStripItem[] array = new ToolStripItem[current2.Items.Count];
                        current2.Items.CopyTo(array, 0);
                        floatingToolStrip.Items.AddRange(array);
                    }
                }
            }
            return(floatingToolStrip);
        }
Exemplo n.º 3
0
 private void LoadToolStripByXmlCall0(UserToolStripGroup Group, FloatingToolStrip userGroup)
 {
     foreach (SubSysOrder subSysOrder in Group.SubSysOrderCollection)
     {
         List <FloatingToolStrip> list = new List <FloatingToolStrip>();
         this.m_SubSysType2ToolStripListDic.TryGetValue(subSysOrder.Type, out list);
         if (null != list)
         {
             foreach (FloatingToolStrip current in list)
             {
                 if (current.Tag != null && current.Tag.ToString().Equals(userGroup.Tag))
                 {
                     ToolStripItem[] array = new ToolStripItem[current.Items.Count];
                     current.Items.CopyTo(array, 0);
                     userGroup.Items.AddRange(array);
                 }
             }
         }
         else
         {
             WriteLog.Logger.Info(subSysOrder.Type + "May not Loaded");
         }
     }
 }
Exemplo n.º 4
0
        private void InitializeComponent()
        {
            this.m_GeoToolBar = new FloatingToolStrip();
            this.GisTs = new FloatingToolStrip();
            this.NetWorkToolBarTs = new FloatingToolStrip();
            this.EditToolBarBarTs = new FloatingToolStrip();
            this.m_UndoBtn = new ToolStripButton();
            this.m_RedoBtn = new ToolStripButton();
            this.m_SelectAreaBtn = new ToolStripButton();
            this.m_CenterMap = new ToolStripButton();
            this.m_RefreshBtn = new ToolStripButton();
            this.m_SelectionBtn = new ToolStripButton();
            this.m_MoveBtn = new ToolStripButton();
            this.m_ScaleComboBox = new ToolStripComboBox();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.m_ZoomBtn = new ToolStripButton();
            this.m_DefineBtn = new ToolStripButton();
            this.toolStripSeparator3 = new ToolStripSeparator();
            this.m_DistanceBtn = new ToolStripButton();
            this.m_AddSiteBtn = new ToolStripButton();
            this.m_AddRepeaterBtn = new ToolStripButton();
            //Added by wj 20110223
            this.m_AddRelayBtn = new ToolStripButton();

            this.m_AutoDistributeSite = new ToolStripButton();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.m_NewPolygonBtn = new ToolStripButton();
            this.m_NewLineBtn = new ToolStripButton();
            this.m_NewPointBtn = new ToolStripButton();
            this.toolStripButton8 = new ToolStripSeparator();
            this.m_UnionBtn = new ToolStripButton();
            this.m_ViewGE = new ToolStripButton();
            this.menuStrip1 = new MenuStrip();
            this.toolsToolStripMenuItem = new ToolStripMenuItemBase();
            this.m_SelectAreaMenuItem = new ToolStripMenuItemBase();
            this.m_SelectMenuItem = new ToolStripMenuItemBase();
            this.m_MoveMapMenuItem = new ToolStripMenuItemBase();
            this.m_ZoomMenuItem = new ToolStripMenuItemBase();
            this.m_DistanceMenuItem = new ToolStripMenuItemBase();
            this.m_ShowGridLineMenuItem = new ToolStripMenuItemBase();
            this.m_SetAdjustDistanceMenuItem = new ToolStripMenuItemBase();
            this.m_GeoToolBar.SuspendLayout();
            this.menuStrip1.SuspendLayout();
            base.SuspendLayout();
            this.GisTs.Tag = "MapToolBar";
            this.GisTs.Items.AddRange(new ToolStripItem[] { 
                this.m_SelectAreaBtn, this.m_CenterMap, this.m_RefreshBtn, this.m_SelectionBtn, this.m_MoveBtn, this.m_ScaleComboBox, this.toolStripSeparator2, this.m_ZoomBtn, this.m_DefineBtn, this.toolStripSeparator3, this.m_DistanceBtn, this.toolStripSeparator1, this.m_NewPolygonBtn, this.m_NewLineBtn, this.m_NewPointBtn, this.toolStripButton8, 
                this.m_UnionBtn, this.m_ViewGE
             });
            this.NetWorkToolBarTs.Tag = "NetWorkToolBar";
            this.NetWorkToolBarTs.Items.AddRange(new ToolStripItem[] { this.m_AutoDistributeSite, this.m_AddSiteBtn, this.m_AddRepeaterBtn ,this.m_AddRelayBtn});
            this.EditToolBarBarTs.Tag = "EditToolBar";
            this.m_UndoBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_UndoBtn.Enabled = false;
            this.m_UndoBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._46;
            this.m_UndoBtn.ImageScaling = ToolStripItemImageScaling.None;
            this.m_UndoBtn.ImageTransparentColor = Color.Magenta;
            this.m_UndoBtn.Name = "m_UndoBtn";
            this.m_UndoBtn.Size = new Size(0x17, 0x16);
            this.m_UndoBtn.Text = GISCtrlGResourceEx.GIS_UNDO;
            this.m_UndoBtn.Click += new EventHandler(this.UndoBtn_Click);
            this.m_RedoBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_RedoBtn.Enabled = false;
            this.m_RedoBtn.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.m_RedoBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._47;
            this.m_RedoBtn.ImageScaling = ToolStripItemImageScaling.None;
            this.m_RedoBtn.ImageTransparentColor = Color.Magenta;
            this.m_RedoBtn.Name = "m_RedoBtn";
            this.m_RedoBtn.Size = new Size(0x17, 0x16);
            this.m_RedoBtn.Text = GISCtrlGResourceEx.GIS_REDO;
            this.m_RedoBtn.Click += new EventHandler(this.RedoBtn_Click);
            this.m_SelectAreaBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_SelectAreaBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._7;
            this.m_SelectAreaBtn.ImageTransparentColor = Color.Magenta;
            this.m_SelectAreaBtn.Name = "m_SelectAreaBtn";
            this.m_SelectAreaBtn.Size = new Size(0x17, 0x16);
            this.m_SelectAreaBtn.Tag = "CaptureImage";
            this.m_SelectAreaBtn.Text = GISCtrlGResourceEx.GIS_SELECT_AN_AREA;
            this.m_SelectAreaBtn.CheckedChanged += new EventHandler(this.SelectAreaBtn_CheckedChanged);
            this.m_SelectAreaBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_SelectAreaBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_SelectAreaBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.m_CenterMap.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_CenterMap.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._48;
            this.m_CenterMap.ImageTransparentColor = Color.Magenta;
            this.m_CenterMap.Name = "m_CenterMap";
            this.m_CenterMap.Size = new Size(0x17, 0x16);
            this.m_CenterMap.Text = GISCtrlGResourceEx.GIS_CENTRE_IN_THE_MAP_WINDOW;
            this.m_CenterMap.Click += new EventHandler(this.CenterMap_Click);
            this.m_RefreshBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_RefreshBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._8;
            this.m_RefreshBtn.ImageTransparentColor = Color.Magenta;
            this.m_RefreshBtn.Name = "m_RefreshBtn";
            this.m_RefreshBtn.Size = new Size(0x17, 0x16);
            this.m_RefreshBtn.Text = GISCtrlGResourceEx.GIS_REFRESH;
            this.m_RefreshBtn.Click += new EventHandler(this.RefreshBtn_Click);
            this.m_SelectionBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_SelectionBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._9;
            this.m_SelectionBtn.ImageTransparentColor = Color.Magenta;
            this.m_SelectionBtn.Name = "m_SelectionBtn";
            this.m_SelectionBtn.Size = new Size(0x17, 0x16);
            this.m_SelectionBtn.Tag = "RectangleSelection";
            this.m_SelectionBtn.Text = GISCtrlGResourceEx.GIS_SELECTION;
            this.m_SelectionBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_SelectionBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_SelectionBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.m_MoveBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_MoveBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._10;
            this.m_MoveBtn.ImageTransparentColor = Color.Magenta;
            this.m_MoveBtn.Name = "m_MoveBtn";
            this.m_MoveBtn.Size = new Size(0x17, 0x16);
            this.m_MoveBtn.Tag = "MoveMap";
            this.m_MoveBtn.Text = GISCtrlGResourceEx.GIS_MOVE_MAP;
            this.m_MoveBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_MoveBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_MoveBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.m_ScaleComboBox.AutoSize = false;
            this.m_ScaleComboBox.Name = "m_ScaleComboBox";
            this.m_ScaleComboBox.Size = new Size(0x79, 0x15);
            this.m_ScaleComboBox.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.m_ScaleComboBox.KeyDown += new KeyEventHandler(this.ScaleComboBox_KeyDown);
            this.m_ScaleComboBox.SelectedIndexChanged += new EventHandler(this.ScaleComboBox_SelectedIndexChanged);
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new Size(6, 0x19);
            this.m_ZoomBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_ZoomBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._12;
            this.m_ZoomBtn.ImageTransparentColor = Color.Magenta;
            this.m_ZoomBtn.Name = "m_ZoomBtn";
            this.m_ZoomBtn.Size = new Size(0x17, 0x16);
            this.m_ZoomBtn.Tag = "Zoom";
            this.m_ZoomBtn.Text = GISCtrlGResourceEx.GIS_ZOOM_IN_OR_ZOOM_OUT_WITH_CENTERING_CTRL_Q;
            this.m_ZoomBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_ZoomBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_ZoomBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.m_DefineBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_DefineBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._13;
            this.m_DefineBtn.ImageTransparentColor = Color.Magenta;
            this.m_DefineBtn.Name = "m_DefineBtn";
            this.m_DefineBtn.Size = new Size(0x17, 0x16);
            this.m_DefineBtn.Tag = "ZoomInRegion";
            this.m_DefineBtn.Text = GISCtrlGResourceEx.GIS_DEFINE_A_ZOOM_AREA_CTRL_W;
            this.m_DefineBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_DefineBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_DefineBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new Size(6, 0x19);
            this.m_DistanceBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_DistanceBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._15;
            this.m_DistanceBtn.ImageTransparentColor = Color.Magenta;
            this.m_DistanceBtn.Name = "m_DistanceBtn";
            this.m_DistanceBtn.Size = new Size(0x17, 0x16);
            this.m_DistanceBtn.Tag = "MeasureDistance";
            this.m_DistanceBtn.Text = GISCtrlGResourceEx.GIS_DISTANCE_MEASUREMENT;
            this.m_DistanceBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_DistanceBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_DistanceBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.m_AddSiteBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_AddSiteBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._18;
            this.m_AddSiteBtn.ImageTransparentColor = Color.Magenta;
            this.m_AddSiteBtn.Name = "m_AddSiteBtn";
            this.m_AddSiteBtn.Size = new Size(0x17, 0x16);
            this.m_AddSiteBtn.Tag = "AddSite";
            this.m_AddSiteBtn.Text = GISCtrlGResourceEx.GIS_NEW_TRANSMITTER_OR_STATION;
            this.m_AddSiteBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_AddSiteBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_AddSiteBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.m_AddRepeaterBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_AddRepeaterBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._20;
            this.m_AddRepeaterBtn.ImageTransparentColor = Color.Magenta;
            this.m_AddRepeaterBtn.Name = "m_AddRepeaterBtn";
            this.m_AddRepeaterBtn.Size = new Size(0x17, 0x16);
            this.m_AddRepeaterBtn.Tag = "AddRepeater";
            this.m_AddRepeaterBtn.Text = GISCtrlGResourceEx.GIS_ADD_REPEATER;
            this.m_AddRepeaterBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_AddRepeaterBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_AddRepeaterBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);

            //Added by wj 20110223
            this.m_AddRelayBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_AddRelayBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._25;
            this.m_AddRelayBtn.ImageTransparentColor = Color.Magenta;
            this.m_AddRelayBtn.Name = "m_AddRelayBtn";
            this.m_AddRelayBtn.Size = new Size(0x17, 0x16);
            this.m_AddRelayBtn.Tag = "AddRelay";
            this.m_AddRelayBtn.Text = GISCtrlGResourceEx.GIS_ADD_RELAY;
            this.m_AddRelayBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_AddRelayBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_AddRelayBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);

            this.m_AutoDistributeSite.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_AutoDistributeSite.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._19;
            this.m_AutoDistributeSite.ImageTransparentColor = Color.Magenta;
            this.m_AutoDistributeSite.Name = "m_AutoDistributeSite";
            this.m_AutoDistributeSite.Size = new Size(0x17, 0x16);
            this.m_AutoDistributeSite.Tag = "AutoSite";
            this.m_AutoDistributeSite.Text = GISCtrlGResourceEx.GIS_AUTO_DISTRIBUTE_SITE;
            this.m_AutoDistributeSite.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_AutoDistributeSite.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_AutoDistributeSite.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new Size(6, 0x19);
            this.m_NewPolygonBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_NewPolygonBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._35;
            this.m_NewPolygonBtn.ImageTransparentColor = Color.Magenta;
            this.m_NewPolygonBtn.Name = "m_NewPolygonBtn";
            this.m_NewPolygonBtn.Size = new Size(0x17, 0x16);
            this.m_NewPolygonBtn.Tag = "AddGeoPolygon";
            this.m_NewPolygonBtn.Text = GISCtrlGResourceEx.GIS_NEW_POLYGON;
            this.m_NewPolygonBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_NewPolygonBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_NewPolygonBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.m_NewLineBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_NewLineBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._36;
            this.m_NewLineBtn.ImageTransparentColor = Color.Magenta;
            this.m_NewLineBtn.Name = "m_NewLineBtn";
            this.m_NewLineBtn.Size = new Size(0x17, 0x16);
            this.m_NewLineBtn.Tag = "AddGeoLine";
            this.m_NewLineBtn.Text = GISCtrlGResourceEx.GIS_NEW_LINE;
            this.m_NewLineBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_NewLineBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_NewLineBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.m_NewPointBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_NewPointBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._37;
            this.m_NewPointBtn.ImageTransparentColor = Color.Magenta;
            this.m_NewPointBtn.Name = "m_NewPointBtn";
            this.m_NewPointBtn.Size = new Size(0x17, 0x16);
            this.m_NewPointBtn.Tag = "AddGeoPoint";
            this.m_NewPointBtn.Text = GISCtrlGResourceEx.GIS_NEW_POINT;
            this.m_NewPointBtn.MouseHover += new EventHandler(this.ShowToolBarTipText);
            this.m_NewPointBtn.Click += new EventHandler(this.OperatorBtn_Click);
            this.m_NewPointBtn.CheckedChanged += new EventHandler(this.OperatorBtn_CheckedChanged);
            this.toolStripButton8.Name = "toolStripButton8";
            this.toolStripButton8.Size = new Size(6, 0x19);
            this.m_UnionBtn.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_UnionBtn.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._38;
            this.m_UnionBtn.ImageTransparentColor = Color.Magenta;
            this.m_UnionBtn.Name = "m_UnionBtn";
            this.m_UnionBtn.Size = new Size(0x17, 0x16);
            this.m_UnionBtn.ToolTipText = GISCtrlGResourceEx.GIS_OPERATOR;
            this.m_UnionBtn.Click += new EventHandler(this.UnionBtn_Click);
            this.m_ViewGE.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.m_ViewGE.Image = Huawei.UNet.Common.GlobalResource.GlobalResource.earth;
            this.m_ViewGE.ImageTransparentColor = Color.White;
            this.m_ViewGE.Name = "m_ViewGE";
            this.m_ViewGE.Size = new Size(0x17, 0x16);
            this.m_ViewGE.Text = GISCtrlGResourceEx.GIS_SWITCH_TO_EARTH_VIEW;
            this.m_ViewGE.Click += new EventHandler(this.ViewGE_Click);
            this.menuStrip1.Items.AddRange(new ToolStripItem[] { this.toolsToolStripMenuItem });
            this.menuStrip1.Location = new System.Drawing.Point(0, 0x19);
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.Size = new Size(0x27c, 0x18);
            this.menuStrip1.TabIndex = 2;
            this.menuStrip1.Text = "";
            this.toolsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.m_SelectAreaMenuItem, this.m_SelectMenuItem, this.m_MoveMapMenuItem, this.m_ZoomMenuItem, this.m_DistanceMenuItem, this.m_ShowGridLineMenuItem, this.m_SetAdjustDistanceMenuItem });
            this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
            this.toolsToolStripMenuItem.Size = new Size(0x2c, 20);
            this.toolsToolStripMenuItem.Text = GISCtrlGResourceEx.GIS_TOOLS;
            this.m_SelectAreaMenuItem.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.m_SelectAreaMenuItem.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._7;
            this.m_SelectAreaMenuItem.Name = "m_SelectAreaMenuItem";
            this.m_SelectAreaMenuItem.Size = new Size(0xaf, 0x16);
            this.m_SelectAreaMenuItem.Tag = "GrabPicture";
            this.m_SelectAreaMenuItem.Text = GISCtrlGResourceEx.GIS_SELECT_AN_AREA;
            this.m_SelectAreaMenuItem.Click += new EventHandler(this.Operate_Selected);
            this.m_SelectMenuItem.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.m_SelectMenuItem.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._9;
            this.m_SelectMenuItem.Name = "m_SelectMenuItem";
            this.m_SelectMenuItem.Size = new Size(0xaf, 0x16);
            this.m_SelectMenuItem.Tag = "Selection";
            this.m_SelectMenuItem.Text = GISCtrlGResourceEx.GIS_SELECTION;
            this.m_SelectMenuItem.Click += new EventHandler(this.SelectionBtn_Click);
            this.m_MoveMapMenuItem.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.m_MoveMapMenuItem.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._10;
            this.m_MoveMapMenuItem.Name = "m_MoveMapMenuItem";
            this.m_MoveMapMenuItem.Size = new Size(0xaf, 0x16);
            this.m_MoveMapMenuItem.Tag = "Move";
            this.m_MoveMapMenuItem.Text = GISCtrlGResourceEx.GIS_MOVE_MAP;
            this.m_MoveMapMenuItem.Click += new EventHandler(this.MoveBtn_Click);
            this.m_ZoomMenuItem.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.m_ZoomMenuItem.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._12;
            this.m_ZoomMenuItem.Name = "m_ZoomMenuItem";
            this.m_ZoomMenuItem.Size = new Size(0xaf, 0x16);
            this.m_ZoomMenuItem.Tag = "Zoom";
            this.m_ZoomMenuItem.Text = GISCtrlGResourceEx.GIS_ZOOM;
            this.m_ZoomMenuItem.Click += new EventHandler(this.ZoomBtn_Click);
            this.m_DistanceMenuItem.Font = new Font("Arial", 9f);
            this.m_DistanceMenuItem.Image = Huawei.UNet.Common.GlobalResource.GlobalResource._15;
            this.m_DistanceMenuItem.Name = "m_DistanceMenuItem";
            this.m_DistanceMenuItem.Size = new Size(0xaf, 0x16);
            this.m_DistanceMenuItem.Tag = "DistanceOfTwoPoints";
            this.m_DistanceMenuItem.Text = GISCtrlGResourceEx.GIS_DISTANCE_MEASURE;
            this.m_DistanceMenuItem.Click += new EventHandler(this.DistanceBtn_Click);
            this.m_SetAdjustDistanceMenuItem.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.m_SetAdjustDistanceMenuItem.Name = "m_SetAdjustDistanceMenuItem";
            this.m_SetAdjustDistanceMenuItem.Size = new Size(0xaf, 0x16);
            this.m_SetAdjustDistanceMenuItem.Text = GISCtrlGResourceEx.GIS_SET_ADJUST_STEP;
            this.m_SetAdjustDistanceMenuItem.Click += new EventHandler(this.AdjustDistance_Click);
            this.m_ShowGridLineMenuItem.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.m_ShowGridLineMenuItem.Name = "m_ShowGridLineMenuItem";
            this.m_ShowGridLineMenuItem.Size = new Size(0xaf, 0x16);
            this.m_ShowGridLineMenuItem.Text = GISCtrlGResourceEx.GIS_SHOW_GRID_LINE;
            this.m_ShowGridLineMenuItem.Checked = true;
            this.m_ShowGridLineMenuItem.Click += new EventHandler(this.ShowGridLine_Click);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.menuStrip1);
            base.Controls.Add(this.m_GeoToolBar);
            base.Name = "GeoToolBarUC";
            base.Size = new Size(0x27c, 0x2d);
            this.m_GeoToolBar.ResumeLayout(false);
            this.m_GeoToolBar.PerformLayout();
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Exemplo n.º 5
0
 private void InitSubToolStrips()
 {
     this.m_SubToolStrips = new List<FloatingToolStrip>();
     FloatingToolStrip item = new FloatingToolStrip();
     item.Tag = "CalculateToolBar";
     item.Name = LTEPredictionResource.PREDICTION_TIPS_OPEN;
     ToolStripButton button = new ToolStripButton();
     button.DisplayStyle = ToolStripItemDisplayStyle.Image;
     button.Image = Resource.OpenTips;
     button.Name = "m_ShowTipBtn";
     button.ToolTipText = LTEPredictionResource.PREDICTION_TIPS_OPEN;
     button.Click += new EventHandler(this.tooltipBtn_Click);
     item.Items.Add(button);
     this.m_SubToolStrips.Add(item);
 }