Exemple #1
0
        public void GetItemInfo(int pos, ESRI.ArcGIS.SystemUI.IItemDef itemDef)
        {
            // TODO: Add CToolbar.GetItemInfo implementation
            UID pUID = new UIDClass();

            itemDef.Group = false;

            switch (pos)
            {
            case 0:
                pUID.Value = "CoM_GISTools.AddLayer.CAddLayer";
                break;

            case 1:
                pUID.Value = "CoM_GISTools.DataFrame.CDataFrame";
                break;

            //case 2:
            //    pUID.Value = "CoM_GISTools.TaxlotSearch.CTaxlotSearch";
            //    break;
            case 2:
                pUID.Value = "CoM_GISTools.Print.CPrintMap";
                break;
            }
            itemDef.ID = pUID.Value.ToString();
        }
Exemple #2
0
		public void GetItemInfo(int pos, ESRI.ArcGIS.SystemUI.IItemDef itemDef)
		{
			if (pos == 0)
			{
				itemDef.ID = "RoutingSample.RoutingCommand";
				itemDef.Group = false;
			}
		}
Exemple #3
0
        public void GetItemInfo(int pos, ESRI.ArcGIS.SystemUI.IItemDef itemDef)
        {
            // TODO: Add ArcGISClass1.GetItemInfo implementation
            UID pUID = new UIDClass();

            itemDef.Group = false;

            switch (pos)
            {
            case 0:
                pUID.Value = "CoM_UnstackPoints.CUnstackPoints";
                break;
            }

            itemDef.ID = pUID.Value.ToString();
        }
Exemple #4
0
        public void GetItemInfo(int pos, ESRI.ArcGIS.SystemUI.IItemDef itemDef)
        {
            //Adding the Items to the Menu
            switch (pos)
            {
            case 0:
                // Set the item in the menu to the ClassID of multiItem above
                itemDef.ID    = "esriControlToolsPageLayout.ControlsPageZoomInFixedCommand";
                itemDef.Group = false;
                break;

            case 1:
                //Set the item in the menu to the ClassID of multiItem above
                itemDef.ID    = "esriControlToolsPageLayout.ControlsPageZoomOutFixedCommand";
                itemDef.Group = false;
                break;

            case 2:
                //Set the item in the menu to the ClassID of multiItem above
                itemDef.ID    = "esriControlToolsPageLayout.ControlsPageZoomWholePageCommand";
                itemDef.Group = false;
                break;

            case 3:
                //Set the item in the menu to the ClassID of multiItem above
                itemDef.ID    = "esriControlToolsPageLayout.ControlsPageZoomPageToLastExtentBackCommand";
                itemDef.Group = false;
                break;

            case 4:
                //Set the item in the menu to the ClassID of multiItem above
                itemDef.ID    = "esriControlToolsPageLayout.ControlsPageZoomPageToLastExtentForwardCommand";
                itemDef.Group = false;
                break;
            }
        }