예제 #1
0
        public override void Execute(object parameter)
        {
            if (configureToolCommand == null)
            {
                configureToolCommand = new ConfigureToolPanelItemCommand()
                {
                    DialogTitle             = ESRI.ArcGIS.Mapping.Builder.Resources.Strings.AddTool,
                    AllowContainerSelection = true,
                    AllowToolSelection      = true
                };

                configureToolCommand.Completed += Configuration_Completed;
                configureToolCommand.Cancelled += (o, e) => { ToggleExecutableState(); };
            }

            ToggleExecutableState();
            configureToolCommand.Execute(null);
        }
        public override void Execute(object parameter)
        {
            if (configureToolCommand == null)
            {
                configureToolCommand = new ConfigureToolPanelItemCommand()
                    {
                        DialogTitle = ESRI.ArcGIS.Mapping.Builder.Resources.Strings.AddGeoprocessing,
                        AllowContainerSelection = true
                    };

                configureToolCommand.Completed += Configuration_Completed;
				configureToolCommand.Cancelled += new EventHandler<EventArgs>(configureToolCommand_Cancelled);

				configureToolCommand.DisplayInfo = new ButtonDisplayInfo()
					{
						Label = gpItem.Name,
						Description = gpItem.Description,
						Icon = ToolbarManagement.GetDefaultIconUrl(gpCommandType)
					};
				configureToolCommand.Execute(new GeoprocessingCommand());
			}
		}
예제 #3
0
        public override void Execute(object parameter)
        {
            if (configureToolCommand == null)
            {
                configureToolCommand = new ConfigureToolPanelItemCommand()
                {
                    DialogTitle             = ESRI.ArcGIS.Mapping.Builder.Resources.Strings.AddGeoprocessing,
                    AllowContainerSelection = true
                };

                configureToolCommand.Completed += Configuration_Completed;
                configureToolCommand.Cancelled += new EventHandler <EventArgs>(configureToolCommand_Cancelled);

                configureToolCommand.DisplayInfo = new ButtonDisplayInfo()
                {
                    Label       = gpItem.Name,
                    Description = gpItem.Description,
                    Icon        = ToolbarManagement.GetDefaultIconUrl(gpCommandType)
                };
                configureToolCommand.Execute(new GeoprocessingCommand());
            }
        }