/// <summary>
		/// Constructor
		/// </summary>
		public ProcedureEditorComponentControl(ProcedureEditorComponent component)
			: base(component)
		{
			InitializeComponent();

			_component = component;

			_procedureType.LookupHandler = _component.ProcedureTypeLookupHandler;
			_procedureType.DataBindings.Add("Enabled", _component, "IsProcedureTypeEditable");
			_procedureType.DataBindings.Add("Value", _component, "SelectedProcedureType", true, DataSourceUpdateMode.OnPropertyChanged);

			_performingFacility.DataSource = _component.FacilityChoices;
			_performingFacility.DataBindings.Add("Value", _component, "SelectedFacility", true, DataSourceUpdateMode.OnPropertyChanged);
			_performingFacility.DataBindings.Add("Enabled", _component, "IsPerformingFacilityEditable");
			_performingFacility.Format += delegate(object sender, ListControlConvertEventArgs e)
										 {
											 e.Value = _component.FormatFacility(e.ListItem);
										 };

			_performingDepartment.DataSource = _component.DepartmentChoices;
			_performingDepartment.DataBindings.Add("Value", _component, "SelectedDepartment", true, DataSourceUpdateMode.OnPropertyChanged);
			_performingDepartment.DataBindings.Add("Enabled", _component, "IsPerformingDepartmentEditable");
			_performingDepartment.Format += delegate(object sender, ListControlConvertEventArgs e)
			{
				e.Value = _component.FormatDepartment(e.ListItem);
			};

			_modality.DataSource = _component.ModalityChoices;
			_modality.DataBindings.Add("Value", _component, "SelectedModality", true, DataSourceUpdateMode.OnPropertyChanged);
			_modality.DataBindings.Add("Enabled", _component, "IsModalityEditable");
			_modality.Format += delegate(object sender, ListControlConvertEventArgs e)
			{
				e.Value = _component.FormatModality(e.ListItem);
			};

			_laterality.DataSource = _component.LateralityChoices;
			_laterality.DataBindings.Add("Value", _component, "SelectedLaterality", true, DataSourceUpdateMode.OnPropertyChanged);

			_schedulingCode.DataSource = _component.SchedulingCodeChoices;
			_schedulingCode.DataBindings.Add("Value", _component, "SelectedSchedulingCode", true, DataSourceUpdateMode.OnPropertyChanged);
			_schedulingCode.Format += delegate(object sender, ListControlConvertEventArgs e)
			{
				e.Value = _component.FormatSchedulingCode(e.ListItem);
			};

			_scheduledDate.DataBindings.Add("Value", _component, "ScheduledTime", true, DataSourceUpdateMode.OnPropertyChanged);
			_scheduledDate.DataBindings.Add("Enabled", _component, "IsScheduledDateTimeEditable");
			_scheduledTime.DataBindings.Add("Value", _component, "ScheduledTime", true, DataSourceUpdateMode.OnPropertyChanged);
			_scheduledTime.DataBindings.Add("Enabled", _component, "IsScheduledDateTimeEditable");

			_duration.DataBindings.Add("Value", _component, "ScheduledDuration", true, DataSourceUpdateMode.OnPropertyChanged);
			_duration.DataBindings.Add("Enabled", _component, "IsScheduledDurationEditable");

			_portable.DataBindings.Add("Checked", _component, "PortableModality", true, DataSourceUpdateMode.OnPropertyChanged);

			_checkedIn.DataBindings.Add("Checked", _component, "CheckedIn", true, DataSourceUpdateMode.OnPropertyChanged);
			_checkedIn.DataBindings.Add("Enabled", _component, "IsCheckedInEditable", true, DataSourceUpdateMode.OnPropertyChanged);

			_component.PropertyChanged += _component_PropertyChanged;
		}
        /// <summary>
        /// Constructor
        /// </summary>
        public ProcedureEditorComponentControl(ProcedureEditorComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;

            _procedureType.LookupHandler = _component.ProcedureTypeLookupHandler;
            _procedureType.DataBindings.Add("Enabled", _component, "IsProcedureTypeEditable");
            _procedureType.DataBindings.Add("Value", _component, "SelectedProcedureType", true, DataSourceUpdateMode.OnPropertyChanged);

            _performingFacility.DataSource = _component.FacilityChoices;
            _performingFacility.DataBindings.Add("Value", _component, "SelectedFacility", true, DataSourceUpdateMode.OnPropertyChanged);
            _performingFacility.DataBindings.Add("Enabled", _component, "IsPerformingFacilityEditable");
            _performingFacility.Format += delegate(object sender, ListControlConvertEventArgs e)
            {
                e.Value = _component.FormatFacility(e.ListItem);
            };

            _performingDepartment.DataSource = _component.DepartmentChoices;
            _performingDepartment.DataBindings.Add("Value", _component, "SelectedDepartment", true, DataSourceUpdateMode.OnPropertyChanged);
            _performingDepartment.DataBindings.Add("Enabled", _component, "IsPerformingDepartmentEditable");
            _performingDepartment.Format += delegate(object sender, ListControlConvertEventArgs e)
            {
                e.Value = _component.FormatDepartment(e.ListItem);
            };

            _modality.DataSource = _component.ModalityChoices;
            _modality.DataBindings.Add("Value", _component, "SelectedModality", true, DataSourceUpdateMode.OnPropertyChanged);
            _modality.DataBindings.Add("Enabled", _component, "IsModalityEditable");
            _modality.Format += delegate(object sender, ListControlConvertEventArgs e)
            {
                e.Value = _component.FormatModality(e.ListItem);
            };

            _laterality.DataSource = _component.LateralityChoices;
            _laterality.DataBindings.Add("Value", _component, "SelectedLaterality", true, DataSourceUpdateMode.OnPropertyChanged);

            _schedulingCode.DataSource = _component.SchedulingCodeChoices;
            _schedulingCode.DataBindings.Add("Value", _component, "SelectedSchedulingCode", true, DataSourceUpdateMode.OnPropertyChanged);
            _schedulingCode.Format += delegate(object sender, ListControlConvertEventArgs e)
            {
                e.Value = _component.FormatSchedulingCode(e.ListItem);
            };

            _scheduledDate.DataBindings.Add("Value", _component, "ScheduledTime", true, DataSourceUpdateMode.OnPropertyChanged);
            _scheduledDate.DataBindings.Add("Enabled", _component, "IsScheduledDateTimeEditable");
            _scheduledTime.DataBindings.Add("Value", _component, "ScheduledTime", true, DataSourceUpdateMode.OnPropertyChanged);
            _scheduledTime.DataBindings.Add("Enabled", _component, "IsScheduledDateTimeEditable");

            _duration.DataBindings.Add("Value", _component, "ScheduledDuration", true, DataSourceUpdateMode.OnPropertyChanged);
            _duration.DataBindings.Add("Enabled", _component, "IsScheduledDurationEditable");

            _portable.DataBindings.Add("Checked", _component, "PortableModality", true, DataSourceUpdateMode.OnPropertyChanged);

            _checkedIn.DataBindings.Add("Checked", _component, "CheckedIn", true, DataSourceUpdateMode.OnPropertyChanged);
            _checkedIn.DataBindings.Add("Enabled", _component, "IsCheckedInEditable", true, DataSourceUpdateMode.OnPropertyChanged);

            _component.PropertyChanged += _component_PropertyChanged;
        }