/// <summary> /// Sets the text and check properties based on the Device and _activityData values in Execution Control /// </summary> private void FillFormWithActivityData(JetAdvantageActivityData jad) { // set the label and textbox controls activeDevice_Label.InvokeIfRequired(adl => { adl.Text = _device.Address; adl.Refresh(); }); activeSolution_Label.InvokeIfRequired(c => { c.Text = "HP JetAdvantage Pull Printing"; c.Refresh(); }); printAll_CheckBox.InvokeIfRequired(pac => { pac.Checked = jad.PrintAllDocuments; pac.Refresh(); }); deleteAfterPrint_checkbox.InvokeIfRequired(dap => { dap.Checked = jad.DeleteAfterPrint; dap.Refresh(); }); }
/// <summary> /// Initializes the specified environment with empty data. /// </summary> /// <param name="environment">The environment.</param> public void Initialize(PluginEnvironment environment) { _activityData = new JetAdvantageActivityData(); _device = new DeviceInfo(string.Empty, AssetAttributes.None, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty); SetControlValues(); //SetJetAdvantageSolution(); }
/// <summary> /// Initializes the control based on saved data /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="environment">The environment.</param> public void Initialize(PluginConfigurationData configuration, PluginEnvironment environment) { _activityData = configuration.GetMetadata <JetAdvantageActivityData>(); _device = (DeviceInfo)ConfigurationServices.AssetInventory.GetAsset(configuration.Assets.SelectedAssets.FirstOrDefault()); SetControlValues(); //SetJetAdvantageSolution(); }
public JetAdvantageManager(PluginExecutionData executionData, DeviceWorkflowLogger workflowLogger, IDevice device, PrintDeviceInfo printDeviceInfo) { _pluginExecutionData = executionData; _activityData = executionData.GetMetadata <JetAdvantageActivityData>(); _device = device; _printDeviceInfo = printDeviceInfo; WorkflowLogger = workflowLogger; }