public iManageActivityData() { LockTimeouts = new LockTimeoutData(TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(10)); PageCount = 1; ScanOptions = new LinkScanOptions(); PrintOptions = new LinkPrintOptions(); }
/// <summary> /// Initializes the configuration control with the supplied configuration settings. /// </summary> /// <param name="configuration">Pre-configured plugin settings.</param> /// <param name="environment">Domain and plugin specific environment data.</param> public void Initialize(PluginConfigurationData configuration, PluginEnvironment environment) { var data = configuration.GetMetadata <CloudConnectorActivityData>(); ConfigureControls(data); _soptions = data.CloudScanOptions; _poptions = data.CloudPrintOptions; lockTimeoutControl.Initialize(data.LockTimeouts); if (data.CloudJobType.Equals(ConnectorJobType.Scan.GetDescription())) { rb_Scan.Checked = true; rb_Print.Checked = false; rb_MultipleFile.Checked = false; } else if (data.CloudJobType.Equals(ConnectorJobType.Print.GetDescription())) { rb_Scan.Checked = false; rb_Print.Checked = true; rb_MultipleFile.Checked = false; } else if (data.CloudJobType.Equals(ConnectorJobType.MultiplePrint.GetDescription())) { rb_Scan.Checked = false; rb_Print.Checked = false; rb_MultipleFile.Checked = true; } assetSelectionControl.Initialize(configuration.Assets, DeviceAttributes); }
public ClioActivityData() { LockTimeouts = new LockTimeoutData(TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(10)); Location = StorageLocation.Matters; PageCount = 1; ScanOptions = new LinkScanOptions(); PrintOptions = new LinkPrintOptions(); }
/// <summary> /// Configuration control with defined value.(Load) /// </summary> /// <param name="data">LinkScanAppsActivityData form.</param> private void ConfigureControls(iManageActivityData data) { comboBox_SIO.Text = data.SIO.GetDescription(); id_TextBox.Text = data.ID; pwd_TextBox.Text = data.Password; comboBox_Logout.Text = data.LogOut.GetDescription(); path_textBox.Text = data.FolderPath; jobBuildPageCount_numericUpDown.Value = data.PageCount; destination_comboBox.Text = EnumUtil.GetDescription(data.Location); if (data.JobType.Equals(iManageJobType.Scan)) { scan_RadioButton.Checked = true; _soptions = data.ScanOptions; } else { print_RadioButton.Checked = true; _poptions = data.PrintOptions; } lockTimeoutControl.Initialize(data.LockTimeouts); assetSelectionControl.SelectionChanged += (s, e) => ConfigurationChanged(s, e); }
private void options_Button_Click(object sender, EventArgs e) { if (print_RadioButton.Checked) { using (var preferences = new LinkPrintOptionsForm(_poptions)) { if (preferences.ShowDialog() == DialogResult.OK) { _poptions = preferences.LinkPrintOption; } } } else { using (var preferences = new LinkScanOptionsForm(_soptions)) { if (preferences.ShowDialog() == DialogResult.OK) { _soptions = preferences.LinkScanOption; } } } }
/// <summary> /// Initializes a new instance of the <see cref="IManagePrintManager" /> class. /// </summary> /// <param name="executionData">The execution data.</param> /// <param name="printOptions">The scan options.</param> /// <param name="serverName">Name of the server.</param> public iManagePrintManager(PluginExecutionData executionData, LinkPrintOptions printOptions, LockTimeoutData lockTimeoutData, string serverName) : base(executionData, printOptions, lockTimeoutData, serverName) { _data = executionData.GetMetadata <iManageActivityData>(); }
/// <summary> /// Initializes a new instance of the <see cref="CloudConnectorPrintManager" /> class. /// </summary> /// <param name="executionData">The execution data.</param> /// <param name="printOptions">The print options.</param> /// <param name="serverName">Name of the server.</param> public CloudConnectorPrintManager(PluginExecutionData executionData, LinkPrintOptions printOptions, LockTimeoutData lockTimeoutData, string serverName) : base(executionData, printOptions, lockTimeoutData, serverName) { ExecutionData = executionData; _data = executionData.GetMetadata <CloudConnectorActivityData>(); }