private void AdancedButton_Click(object sender, EventArgs e) { IDicomPrinterConfigurationEditorComponent advancedConfigurationComponent = (IDicomPrinterConfigurationEditorComponent)_component.PrinterConfigurationEditorComponentHost.Component; advancedConfigurationComponent.ShowAdvancedConfigurationOptions(); }
public void SetComponent(IApplicationComponent component) { _component = (IDicomPrinterConfigurationEditorComponent)component; }
public ConfigurationEditorComponentControl(IDicomPrinterConfigurationEditorComponent component) : base(component) { InitializeComponent(); _component = component; this.WysiwygRadio.DataBindings.Add("Checked", _component, "Wysiwyg", true, DataSourceUpdateMode.Never); this.CompleteImageRadio.DataBindings.Add("Checked", _component, "CompleteImage", true, DataSourceUpdateMode.Never); this.TrueSizeRadio.DataBindings.Add("Checked", _component, "TrueSize", true, DataSourceUpdateMode.Never); this.GrayscaleRadio.DataBindings.Add("Checked", _component, "Grayscale", true, DataSourceUpdateMode.Never); this.ColorRadio.DataBindings.Add("Checked", _component, "Color", true, DataSourceUpdateMode.Never); this.NumberOfCopies.DataBindings.Add("Value", _component, "NumberOfCopies", true, DataSourceUpdateMode.OnPropertyChanged); this.ConfigInfoText.DataBindings.Add("Text", _component, "ConfigurationInformation", true, DataSourceUpdateMode.OnPropertyChanged); this.FilmSizeComBox.DataBindings.Clear(); this.FilmSizeComBox.DataSource = _component.FilmSizeChoices; this.FilmSizeComBox.DataBindings.Add("SelectedItem", _component, "FilmSize", true, DataSourceUpdateMode.OnPropertyChanged); this.FilmOrientationComBox.DataBindings.Clear(); this.FilmOrientationComBox.DataSource = _component.FilmOrientationChoices; this.FilmOrientationComBox.DataBindings.Add("SelectedItem", _component, "FilmOrientation", true, DataSourceUpdateMode.OnPropertyChanged); this.FormatComBox.DataBindings.Clear(); this.FormatComBox.DataSource = _component.ImageDisplayFormatChoices; this.FormatComBox.DataBindings.Add("SelectedItem", _component, "ImageDisplayFormat", true, DataSourceUpdateMode.Never); this.DestinationComBox.DataBindings.Clear(); this.DestinationComBox.DataSource = _component.FilmDestinationChoices; this.DestinationComBox.DataBindings.Add("SelectedItem", _component, "FilmDestination", true, DataSourceUpdateMode.OnPropertyChanged); this.MediumComBox.DataBindings.Clear(); this.MediumComBox.DataSource = _component.MediumTypeChoices; this.MediumComBox.DataBindings.Add("SelectedItem", _component, "MediumType", true, DataSourceUpdateMode.OnPropertyChanged); this.RequestResolutionComBox.DataBindings.Clear(); this.RequestResolutionComBox.DataSource = _component.RequestedResolutionChoices; this.RequestResolutionComBox.DataBindings.Add("SelectedItem", _component, "RequestedResolution", true, DataSourceUpdateMode.OnPropertyChanged); this.BorderDensity.DataBindings.Clear(); this.BorderDensity.DataSource = _component.BorderDensityChoices; this.BorderDensity.DataBindings.Add("SelectedItem", _component, "BorderDensity", true, DataSourceUpdateMode.OnPropertyChanged); this.ImageDensityComBox.DataBindings.Clear(); this.ImageDensityComBox.DataSource = _component.EmptyImageDensityChoices; this.ImageDensityComBox.DataBindings.Add("SelectedItem", _component, "EmptyImageDensity", true, DataSourceUpdateMode.OnPropertyChanged); this.MangnificationComBox.DataBindings.Clear(); this.MangnificationComBox.DataSource = _component.MagnificationTypeChoices; this.MangnificationComBox.DataBindings.Add("SelectedItem", _component, "MagnificationType", true, DataSourceUpdateMode.OnPropertyChanged); this.PriorityComBox.DataBindings.Clear(); this.PriorityComBox.DataSource = _component.PrintPriorityChoices; this.PriorityComBox.DataBindings.Add("SelectedItem", _component, "PrintPriority", true, DataSourceUpdateMode.OnPropertyChanged); _component.localPropertyChanged += PropertyChanged; this.FilmSizeComBox.SelectedValueChanged += VerityEnabled; }