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); }
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()); } }
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; }