public void Initialize(PluginConfigurationData configuration, PluginEnvironment environment) { DeveloperPluginActivityData activityData = configuration.GetMetadata <DeveloperPluginActivityData>(); resultComboBox.SelectedItem = activityData.Result; assetSelectionControl.Initialize(configuration.Assets, AssetAttributes.None); documentSelectionControl.Initialize(configuration.Documents); remotePrintQueueSelectionControl.Initialize(configuration.PrintQueues); }
public PluginConfigurationData GetConfiguration() { DeveloperPluginActivityData activityData = new DeveloperPluginActivityData { Result = (DeveloperPluginResult)resultComboBox.SelectedItem }; return(new PluginConfigurationData(activityData, "1.0") { Assets = assetSelectionControl.AssetSelectionData, Documents = documentSelectionControl.DocumentSelectionData, PrintQueues = remotePrintQueueSelectionControl.PrintQueueSelectionData }); }