/// <summary>
        /// Constructor.
        /// </summary>
        public CopySubsetToClipboardComponentControl(CopySubsetToClipboardComponent component)
            :base(component)
        {
			_component = component;
            InitializeComponent();

        	base.AcceptButton = _sendToClipboardButton;

			_sourceDisplaySet.DataBindings.Add("Text", _component, "SourceDisplaySetDescription", true, DataSourceUpdateMode.OnPropertyChanged);

			_radioUseInstanceNumber.DataBindings.Add("Checked", _component, "UseInstanceNumber", true, DataSourceUpdateMode.OnPropertyChanged);
			_radioUseInstanceNumber.DataBindings.Add("Enabled", _component, "UseInstanceNumberEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_radioUsePositionNumber.DataBindings.Add("Checked", _component, "UsePositionNumber", true, DataSourceUpdateMode.OnPropertyChanged);
			_radioUsePositionNumber.DataBindings.Add("Enabled", _component, "UsePositionNumberEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
			
			_radioCopyRange.DataBindings.Add("Checked", _component, "CopyRange", true, DataSourceUpdateMode.OnPropertyChanged);
			_radioCopyRange.DataBindings.Add("Enabled", _component, "CopyRangeEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_radioCopyCustom.DataBindings.Add("Checked", _component, "CopyCustom", true, DataSourceUpdateMode.OnPropertyChanged);
			_radioCopyCustom.DataBindings.Add("Enabled", _component, "CopyCustomEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_radioCopyRangeAll.DataBindings.Add("Checked", _component, "CopyRangeAll", true, DataSourceUpdateMode.OnPropertyChanged);
			_radioCopyRangeAll.DataBindings.Add("Enabled", _component, "CopyRangeAllEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_radioCopyRangeAtInterval.DataBindings.Add("Checked", _component, "CopyRangeAtInterval", true, DataSourceUpdateMode.OnPropertyChanged);
			_radioCopyRangeAtInterval.DataBindings.Add("Enabled", _component, "CopyRangeAtIntervalEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_copyRangeStart.DataBindings.Add("Minimum", _component, "RangeMinimum", true, DataSourceUpdateMode.OnPropertyChanged);
			_copyRangeStart.DataBindings.Add("Maximum", _component, "CopyRangeEnd", true, DataSourceUpdateMode.OnPropertyChanged);
			_copyRangeStart.DataBindings.Add("Value", _component, "CopyRangeStart", true, DataSourceUpdateMode.OnPropertyChanged);
			_copyRangeStart.DataBindings.Add("Enabled", _component, "CopyRangeStartEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_copyRangeEnd.DataBindings.Add("Minimum", _component, "CopyRangeStart", true, DataSourceUpdateMode.OnPropertyChanged);
			_copyRangeEnd.DataBindings.Add("Maximum", _component, "RangeMaximum", true, DataSourceUpdateMode.OnPropertyChanged);
			_copyRangeEnd.DataBindings.Add("Value", _component, "CopyRangeEnd", true, DataSourceUpdateMode.OnPropertyChanged);
			_copyRangeEnd.DataBindings.Add("Enabled", _component, "CopyRangeEndEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_copyRangeInterval.DataBindings.Add("Minimum", _component, "RangeMinInterval", true, DataSourceUpdateMode.OnPropertyChanged);
			_copyRangeInterval.DataBindings.Add("Maximum", _component, "RangeMaxInterval", true, DataSourceUpdateMode.OnPropertyChanged);
			_copyRangeInterval.DataBindings.Add("Value", _component, "CopyRangeInterval", true, DataSourceUpdateMode.OnPropertyChanged);
			_copyRangeInterval.DataBindings.Add("Enabled", _component, "CopyRangeIntervalEnabled", true, DataSourceUpdateMode.OnPropertyChanged); 

			_customRange.DataBindings.Add("Text", _component, "CustomRange", true, DataSourceUpdateMode.OnPropertyChanged);
			_customRange.DataBindings.Add("Enabled", _component, "CustomRangeEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_sendToClipboardButton.DataBindings.Add("Enabled", _component, "Enabled", true, DataSourceUpdateMode.OnPropertyChanged);
		}
        /// <summary>
        /// Constructor.
        /// </summary>
        public CopySubsetToClipboardComponentControl(CopySubsetToClipboardComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            base.AcceptButton = _sendToClipboardButton;

            _sourceDisplaySet.DataBindings.Add("Text", _component, "SourceDisplaySetDescription", true, DataSourceUpdateMode.OnPropertyChanged);

            _radioUseInstanceNumber.DataBindings.Add("Checked", _component, "UseInstanceNumber", true, DataSourceUpdateMode.OnPropertyChanged);
            _radioUseInstanceNumber.DataBindings.Add("Enabled", _component, "UseInstanceNumberEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _radioUsePositionNumber.DataBindings.Add("Checked", _component, "UsePositionNumber", true, DataSourceUpdateMode.OnPropertyChanged);
            _radioUsePositionNumber.DataBindings.Add("Enabled", _component, "UsePositionNumberEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _radioCopyRange.DataBindings.Add("Checked", _component, "CopyRange", true, DataSourceUpdateMode.OnPropertyChanged);
            _radioCopyRange.DataBindings.Add("Enabled", _component, "CopyRangeEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _radioCopyCustom.DataBindings.Add("Checked", _component, "CopyCustom", true, DataSourceUpdateMode.OnPropertyChanged);
            _radioCopyCustom.DataBindings.Add("Enabled", _component, "CopyCustomEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _radioCopyRangeAll.DataBindings.Add("Checked", _component, "CopyRangeAll", true, DataSourceUpdateMode.OnPropertyChanged);
            _radioCopyRangeAll.DataBindings.Add("Enabled", _component, "CopyRangeAllEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _radioCopyRangeAtInterval.DataBindings.Add("Checked", _component, "CopyRangeAtInterval", true, DataSourceUpdateMode.OnPropertyChanged);
            _radioCopyRangeAtInterval.DataBindings.Add("Enabled", _component, "CopyRangeAtIntervalEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _copyRangeStart.DataBindings.Add("Minimum", _component, "RangeMinimum", true, DataSourceUpdateMode.OnPropertyChanged);
            _copyRangeStart.DataBindings.Add("Maximum", _component, "CopyRangeEnd", true, DataSourceUpdateMode.OnPropertyChanged);
            _copyRangeStart.DataBindings.Add("Value", _component, "CopyRangeStart", true, DataSourceUpdateMode.OnPropertyChanged);
            _copyRangeStart.DataBindings.Add("Enabled", _component, "CopyRangeStartEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _copyRangeEnd.DataBindings.Add("Minimum", _component, "CopyRangeStart", true, DataSourceUpdateMode.OnPropertyChanged);
            _copyRangeEnd.DataBindings.Add("Maximum", _component, "RangeMaximum", true, DataSourceUpdateMode.OnPropertyChanged);
            _copyRangeEnd.DataBindings.Add("Value", _component, "CopyRangeEnd", true, DataSourceUpdateMode.OnPropertyChanged);
            _copyRangeEnd.DataBindings.Add("Enabled", _component, "CopyRangeEndEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _copyRangeInterval.DataBindings.Add("Minimum", _component, "RangeMinInterval", true, DataSourceUpdateMode.OnPropertyChanged);
            _copyRangeInterval.DataBindings.Add("Maximum", _component, "RangeMaxInterval", true, DataSourceUpdateMode.OnPropertyChanged);
            _copyRangeInterval.DataBindings.Add("Value", _component, "CopyRangeInterval", true, DataSourceUpdateMode.OnPropertyChanged);
            _copyRangeInterval.DataBindings.Add("Enabled", _component, "CopyRangeIntervalEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _customRange.DataBindings.Add("Text", _component, "CustomRange", true, DataSourceUpdateMode.OnPropertyChanged);
            _customRange.DataBindings.Add("Enabled", _component, "CustomRangeEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _sendToClipboardButton.DataBindings.Add("Enabled", _component, "Enabled", true, DataSourceUpdateMode.OnPropertyChanged);
        }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (CopySubsetToClipboardComponent)component;
 }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (CopySubsetToClipboardComponent)component;
 }