/// <summary>
        /// Initializes the configuration control with default settings.
        /// </summary>
        /// <param name="environment"></param>
        public void Initialize(PluginEnvironment environment)
        {
            var allExtensions   = ConfigurationServices.DocumentLibrary.GetExtensions();
            var validExtensions = allExtensions.Where(n => n.Extension.Equals("JPG") || n.Extension.Equals("PDF"));

            documentSelectionControl.Initialize(validExtensions);
            _activityData = new mPrintActivityData();

            mPrint_ServerComboBox.Initialize("mPrint");
        }
        /// <summary>
        /// Execute the task of the mPrint activity.
        /// </summary>
        /// <param name="executionData"></param>
        /// <returns></returns>
        public PluginExecutionResult Execute(PluginExecutionData executionData)
        {
            //var retryManager = new PluginRetryManager(executionData, UpdateStatus);
            _executionData = executionData;
            mPrintActivityData activityData = executionData.GetMetadata <mPrintActivityData>();

            //UpdateStatus("Starting task engine");
            //var engine = new ActivityTaskEngine();
            //engine.StatusUpdateMessageTarget = UpdateStatus;

            return(SendIPPCommandTomPrint(activityData.serv, activityData.queueIndex));
        }
        /// <summary>
        /// Initializes the configuration control with the specified settings.
        /// </summary>
        /// <param name="configuration"></param>
        /// <param name="environment"></param>
        public void Initialize(PluginConfigurationData configuration, PluginEnvironment environment)
        {
            //Initialize the activity data by deserializing it from the configuration information
            _configData    = configuration;
            _activityData  = configuration.GetMetadata <mPrintActivityData>();
            _selectedAsset = ConfigurationServices.AssetInventory.GetAsset(_configData.Assets.SelectedAssets.FirstOrDefault());

            mPrint_ServerComboBox.Initialize(_configData.Servers.SelectedServers.FirstOrDefault(), "mPrint");
            mPrint_ServerComboBox_SelectionChanged(mPrint_ServerComboBox, EventArgs.Empty);
            queueIndex_TextBox.Text = _activityData.queueIndex;

            var allExtensions   = ConfigurationServices.DocumentLibrary.GetExtensions();
            var validExtensions = allExtensions.Where(n => n.Extension.Equals("JPG") || n.Extension.Equals("PDF"));

            documentSelectionControl.Initialize(configuration.Documents, validExtensions);
        }