Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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
            });
        }