/// <summary> /// Initializes this configuration control with the specified <see cref="PluginConfigurationData" />. /// </summary> /// <param name="configuration">The configuration data.</param> /// <param name="environment">Information about the plugin environment.</param> public void Initialize(PluginConfigurationData configuration, PluginEnvironment environment) { var data = configuration.GetMetadata <RegusKioskActivityData>(); ConfigureControls(data); _coptions = data.CopyOptions; _poptions = data.PrintOptions; _soptions = data.ScanOptions; lockTimeoutControl.Initialize(data.LockTimeouts); //JobType Enum if (data.JobType.Equals(RegusKioskJobType.Copy)) { copy_RadioButton.Checked = true; print_RadioButton.Checked = false; scan_RadioButton.Checked = false; } else if (data.JobType.Equals(RegusKioskJobType.Print)) { copy_RadioButton.Checked = false; print_RadioButton.Checked = true; scan_RadioButton.Checked = false; } else if (data.JobType.Equals(RegusKioskJobType.Scan)) { copy_RadioButton.Checked = false; print_RadioButton.Checked = false; scan_RadioButton.Checked = true; } assetSelectionControl.Initialize(configuration.Assets, DeviceAttributes); }
public RegusKioskActivityData() { //값 초기화 부분 LockTimeouts = new LockTimeoutData(TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(10)); CopyOptions = new RegusKioskCopyOptions(); PrintOptions = new RegusKioskPrintOptions(); ScanOptions = new RegusKioskScanOptions(); }
private void options_Button_Click(object sender, EventArgs e) { if (copy_RadioButton.Checked) { using (var preferences = new RegusKioskCopyOptionsForm(_coptions)) { if (preferences.ShowDialog() == DialogResult.OK) { _coptions = preferences.RegusKioskCopyOptions; } } } else if (print_RadioButton.Checked) { _poptions.PrintSource = EnumUtil.GetByDescription <RegusKioskPrintSource>(printSource_comboBox.Text); using (var preferences = new RegusKioskPrintOptionsForm(_poptions)) { if (preferences.ShowDialog() == DialogResult.OK) { _poptions = preferences.RegusKioskPrintOptions; } } } else if (scan_RadioButton.Checked) { _soptions.ScanDestination = EnumUtil.GetByDescription <RegusKioskScanDestination>(scanDestination_comboBox.Text); using (var preferences = new RegusKioskScanOptionsForm(_soptions)) { if (preferences.ShowDialog() == DialogResult.OK) { _soptions = preferences.RegusKioskScanOptions; } } } else { return; } }
/// <summary> /// Initializes a new instance of the <see cref="RegusKioskScanManager" /> class. /// </summary> /// <param name="executionData">The execution data.</param> /// <param name="printOptions">The scan options.</param> public RegusKioskScanManager(PluginExecutionData executionData, RegusKioskScanOptions scanOptions, LockTimeoutData lockTimeoutData) : base(executionData, lockTimeoutData) { _data = executionData.GetMetadata <RegusKioskActivityData>(); _regusKioskScanOptions = _data.ScanOptions; }