private void Configuration_Completed(object sender, EventArgs e)
        {
            AddToolCommand addGP = new AddToolCommand()
            {
                ToolPanel = configureToolCommand.ToolPanel,
                ToolType = gpCommandType,
                ToolInstance = configureToolCommand.Class,
                DisplayInfo = configureToolCommand.DisplayInfo
            };
            addGP.Execute(null);

			configureToolCommand = null;
        }
예제 #2
0
        private void Configuration_Completed(object sender, EventArgs e)
        {
            AddToolCommand addGP = new AddToolCommand()
            {
                ToolPanel    = configureToolCommand.ToolPanel,
                ToolType     = gpCommandType,
                ToolInstance = configureToolCommand.Class,
                DisplayInfo  = configureToolCommand.DisplayInfo
            };

            addGP.Execute(null);

            configureToolCommand = null;
        }
        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);
        }
예제 #4
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());
			}
		}
예제 #6
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());
            }
        }
		void configureToolCommand_Cancelled(object sender, EventArgs e)
		{
			configureToolCommand = null;			
		}
예제 #8
0
 void configureToolCommand_Cancelled(object sender, EventArgs e)
 {
     configureToolCommand = null;
 }