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

            // Create Templates
            this.SuspendLayout();

			//const int yOffset = 5;
			const int yOffset = 32;
            Size szTemplate = this.Size - new Size(this.Margin.Horizontal, this.Margin.Vertical + yOffset);

            // Standard template
			_templateCtrlStandard = new StandardTemplateControl(_component);
			_templateCtrlStandard.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
			//        _templateCtrlStandard.CalculationInfo = ((System.Collections.Generic.List<string>)(resources.GetObject("_templateCtrlStandard.CalculationInfo")));
			_templateCtrlStandard.Location = new System.Drawing.Point(3, yOffset);
			_templateCtrlStandard.Name = "_templateCtrlStandard";
			_templateCtrlStandard.Size = szTemplate; // new Size(603, 561);
			_templateCtrlStandard.TabIndex = 2;

            // Vasari template
            _templateCtrlVasari = new VasariTemplateCtrl(_component);
            _templateCtrlVasari.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            _templateCtrlVasari.Location = new System.Drawing.Point(3, yOffset);
            _templateCtrlVasari.Name = "_templateCtrlVasari";
            _templateCtrlVasari.Size = szTemplate; // new Size(603, 561);
            _templateCtrlVasari.TabIndex = 2;

			this.Controls.Add(_templateCtrlStandard);
            this.Controls.Add(_templateCtrlVasari);
            this.ResumeLayout(false);
            this.PerformLayout();


            _bindingSource = new BindingSource();
			_bindingSource.DataSource = _component;

            _cmbAnnotationType.DataSource = _component.AvailableAnnotationTypes;

			// VK: Removed Statndard control for TCGA
			//_cmbAnnotationType.Enabled = false;
			//_cmbAnnotationType.Visible = false;
			//_lblAnnotationType.Visible = false;


			_templateCtrlStandard.DataBindings.Add("Visible", _bindingSource, "StandardTemplateVisible", true, DataSourceUpdateMode.OnPropertyChanged);
            _templateCtrlVasari.DataBindings.Add("Visible", _bindingSource, "VasariTemplateVisible", true, DataSourceUpdateMode.OnPropertyChanged);

            // Enable/disable ctrl
            this.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            //// Control State
            //_tboxAnnotationName.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            //_anatomicEntity.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            //_imagingObservation.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            //_btnCreateAnnotation.DataBindings.Add("Enabled", _bindingSource, "CreateAnnotationEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            //this.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            //// Values
            //_anatomicEntity.DataBindings.Add("SelectedAnatomicEntity", _bindingSource, "SelectedAnatomicEntity", true, DataSourceUpdateMode.OnPropertyChanged);
            //_imagingObservation.DataBindings.Add("SelectedImagingObservations", _bindingSource, "SelectedImagingObservations", true, DataSourceUpdateMode.OnPropertyChanged);
            //_tboxAnnotationName.DataBindings.Add("Text", _bindingSource, "AnnotationName", true, DataSourceUpdateMode.OnPropertyChanged);
            //this.DataBindings.Add("CalculationInfo", _bindingSource, "CalculationInfo", true, DataSourceUpdateMode.OnPropertyChanged);

            //// Ontologies
            //_anatomicEntity.DataBindings.Add("DataSource", _bindingSource, "SelectedOntology", true, DataSourceUpdateMode.OnPropertyChanged);
            //_imagingObservation.DataBindings.Add("DataSource", _bindingSource, "SelectedOntology", true, DataSourceUpdateMode.OnPropertyChanged);
            //_imagingObservation.DataBindings.Add("ImagingObsCharacteristicDataSource", _bindingSource, "SelectedImgObsCharacteristicOntology", true, DataSourceUpdateMode.OnPropertyChanged);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public AimAnnotationComponentControl(AimAnnotationComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            // Create Templates
            this.SuspendLayout();

            //const int yOffset = 5;
            const int yOffset    = 32;
            Size      szTemplate = this.Size - new Size(this.Margin.Horizontal, this.Margin.Vertical + yOffset);

            // Standard template
            _templateCtrlStandard        = new StandardTemplateControl(_component);
            _templateCtrlStandard.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            //        _templateCtrlStandard.CalculationInfo = ((System.Collections.Generic.List<string>)(resources.GetObject("_templateCtrlStandard.CalculationInfo")));
            _templateCtrlStandard.Location = new System.Drawing.Point(3, yOffset);
            _templateCtrlStandard.Name     = "_templateCtrlStandard";
            _templateCtrlStandard.Size     = szTemplate;         // new Size(603, 561);
            _templateCtrlStandard.TabIndex = 2;

            // Vasari template
            _templateCtrlVasari          = new VasariTemplateCtrl(_component);
            _templateCtrlVasari.Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            _templateCtrlVasari.Location = new System.Drawing.Point(3, yOffset);
            _templateCtrlVasari.Name     = "_templateCtrlVasari";
            _templateCtrlVasari.Size     = szTemplate; // new Size(603, 561);
            _templateCtrlVasari.TabIndex = 2;

            this.Controls.Add(_templateCtrlStandard);
            this.Controls.Add(_templateCtrlVasari);
            this.ResumeLayout(false);
            this.PerformLayout();


            _bindingSource            = new BindingSource();
            _bindingSource.DataSource = _component;

            _cmbAnnotationType.DataSource = _component.AvailableAnnotationTypes;

            // VK: Removed Statndard control for TCGA
            //_cmbAnnotationType.Enabled = false;
            //_cmbAnnotationType.Visible = false;
            //_lblAnnotationType.Visible = false;


            _templateCtrlStandard.DataBindings.Add("Visible", _bindingSource, "StandardTemplateVisible", true, DataSourceUpdateMode.OnPropertyChanged);
            _templateCtrlVasari.DataBindings.Add("Visible", _bindingSource, "VasariTemplateVisible", true, DataSourceUpdateMode.OnPropertyChanged);

            // Enable/disable ctrl
            this.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            //// Control State
            //_tboxAnnotationName.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            //_anatomicEntity.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            //_imagingObservation.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            //_btnCreateAnnotation.DataBindings.Add("Enabled", _bindingSource, "CreateAnnotationEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            //this.DataBindings.Add("Enabled", _bindingSource, "AnnotationModuleEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            //// Values
            //_anatomicEntity.DataBindings.Add("SelectedAnatomicEntity", _bindingSource, "SelectedAnatomicEntity", true, DataSourceUpdateMode.OnPropertyChanged);
            //_imagingObservation.DataBindings.Add("SelectedImagingObservations", _bindingSource, "SelectedImagingObservations", true, DataSourceUpdateMode.OnPropertyChanged);
            //_tboxAnnotationName.DataBindings.Add("Text", _bindingSource, "AnnotationName", true, DataSourceUpdateMode.OnPropertyChanged);
            //this.DataBindings.Add("CalculationInfo", _bindingSource, "CalculationInfo", true, DataSourceUpdateMode.OnPropertyChanged);

            //// Ontologies
            //_anatomicEntity.DataBindings.Add("DataSource", _bindingSource, "SelectedOntology", true, DataSourceUpdateMode.OnPropertyChanged);
            //_imagingObservation.DataBindings.Add("DataSource", _bindingSource, "SelectedOntology", true, DataSourceUpdateMode.OnPropertyChanged);
            //_imagingObservation.DataBindings.Add("ImagingObsCharacteristicDataSource", _bindingSource, "SelectedImgObsCharacteristicOntology", true, DataSourceUpdateMode.OnPropertyChanged);
        }