/// <summary> /// Constructor /// </summary> public DicomServerConfigurationComponentControl(DicomServerConfigurationComponent component) : base(component) { InitializeComponent(); _component = component; _aeTitle.DataBindings.Add("Value", _component, "AETitle", true, DataSourceUpdateMode.OnPropertyChanged); Binding portBinding = new Binding("Value", _component, "Port", true, DataSourceUpdateMode.OnPropertyChanged); portBinding.Format += new ConvertEventHandler(OnPortBindingFormat); portBinding.Parse += new ConvertEventHandler(OnPortBindingParse); _port.DataBindings.Add(portBinding); }
/// <summary> /// Constructor /// </summary> public DicomServerConfigurationComponentControl(DicomServerConfigurationComponent component) : base(component) { InitializeComponent(); _component = component; _aeTitle.DataBindings.Add("Value", _component, "AETitle", true, DataSourceUpdateMode.OnPropertyChanged); Binding portBinding = new Binding("Value", _component, "Port", true, DataSourceUpdateMode.OnPropertyChanged); portBinding.Format += new ConvertEventHandler(OnPortBindingFormat); portBinding.Parse += new ConvertEventHandler(OnPortBindingParse); _port.DataBindings.Add(portBinding); }
public void SetComponent(IApplicationComponent component) { _component = (DicomServerConfigurationComponent)component; }
public void SetComponent(IApplicationComponent component) { _component = (DicomServerConfigurationComponent)component; }