public bool isFilled()
 {
     if (string.IsNullOrEmpty(_ddEntAE.SelectedEntity.Value))
     {
         return(false);
     }
     if (string.IsNullOrEmpty(_ddEntEloquentBrainIO.SelectedEntity.Value))
     {
         return(false);
     }
     if (string.IsNullOrEmpty(_lesionAE.SelectedEntity.Value))
     {
         return(false);
     }
     foreach (Control ctrl in this.Controls)
     {
         DropDownEntity ddEnt = ctrl as DropDownEntity;
         if (ddEnt == null || string.Equals((string)ddEnt.Tag, "ImagingObservation") || string.IsNullOrEmpty(ddEnt.SelectedEntity.Value))
         {
             return(false);
         }
     }
     return(true);
 }
        public VasariFeatures()
        {
            InitializeComponent();

            this.SuspendLayout();
            int startPtY = 3;
            int cnt = 0;

        	const int verticalScrollbarWidth = 0; // SystemInformation.VerticalScrollBarWidth;

            // Location/Anatmic Entity
            _ddEntAE = new DropDownEntity("Location (Anatomic Entity)", VasariTemplateData.AnatomicEntityData, false);
            _ddEntAE.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
        	_ddEntAE.AutoScaleMode = AutoScaleMode.Inherit;
            _ddEntAE.Location = new System.Drawing.Point(3, startPtY);
            _ddEntAE.Name = "dddEntAE" + cnt;
			_ddEntAE.Size = new Size(this.Width - this.Margin.Horizontal - verticalScrollbarWidth, _ddEntAE.Height);
            _ddEntAE.TabIndex = cnt;
            _ddEntAE.Tag = "AnatomicEntity";
            startPtY += _ddEntAE.Height + 3;
            cnt++;
            this.Controls.Add(_ddEntAE);

            // Eloquent Brain Involvement/Imaging Observation
            _ddEntEloquentBrainIO = new DropDownEntity("Eloquent Brain Involvement (Imaging Observation)", VasariTemplateData.EloquentBrainInvolvementData, false);
            _ddEntEloquentBrainIO.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
			_ddEntEloquentBrainIO.AutoScaleMode = AutoScaleMode.Inherit;
            _ddEntEloquentBrainIO.Location = new System.Drawing.Point(3, startPtY);
            _ddEntEloquentBrainIO.Name = "ddEntEloquentBrainIO" + cnt;
			_ddEntEloquentBrainIO.Size = new Size(this.Width - this.Margin.Horizontal - verticalScrollbarWidth, _ddEntEloquentBrainIO.Height);
            _ddEntEloquentBrainIO.TabIndex = cnt;
            _ddEntEloquentBrainIO.Tag = "ImagingObservation";
            startPtY += _ddEntEloquentBrainIO.Height + 3;
            cnt++;
            this.Controls.Add(_ddEntEloquentBrainIO);

            // Eloquent Brain Involvement/Imaging Observation
            _lesionAE = new DropDownEntity("Lesion (Imaging Observation)", VasariTemplateData.LesionData, false);
            _lesionAE.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
			_lesionAE.AutoScaleMode = AutoScaleMode.Inherit;
            _lesionAE.Location = new System.Drawing.Point(3, startPtY);
            _lesionAE.Name = "lesionAE" + cnt;
			_lesionAE.Size = new Size(this.Width - this.Margin.Horizontal - verticalScrollbarWidth, _lesionAE.Height);
            _lesionAE.TabIndex = cnt;
            _lesionAE.Tag = "ImagingObservation";
            startPtY += _lesionAE.Height + 3;
            cnt++;
            this.Controls.Add(_lesionAE);

        	DropDownEntity ddEnt;
            // ImagingObservationCharacteristic for Lesion/ImagingObservation
            foreach (KeyValuePair<string, List<KeyValuePair<string, string>>> entity in VasariTemplateData.ImagingObservationCharData)
            {
                ddEnt = new DropDownEntity(entity.Key, entity.Value, false);
                ddEnt.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
                ddEnt.Location = new System.Drawing.Point(25, startPtY);
                ddEnt.Name = "dddEnt" + cnt;
				ddEnt.Size = new Size(this.Width - this.Margin.Horizontal - verticalScrollbarWidth - 20, ddEnt.Height);
                ddEnt.TabIndex = cnt;
                ddEnt.Tag = "ImagingObservationCharacteristic";
                startPtY += ddEnt.Height + 3;
                cnt++;
                this.Controls.Add(ddEnt);
            }

            this.ResumeLayout(false);
        }
        public VasariFeatures()
        {
            InitializeComponent();

            this.SuspendLayout();
            int startPtY = 3;
            int cnt      = 0;

            const int verticalScrollbarWidth = 0;     // SystemInformation.VerticalScrollBarWidth;

            // Location/Anatmic Entity
            _ddEntAE               = new DropDownEntity("Location (Anatomic Entity)", VasariTemplateData.AnatomicEntityData, false);
            _ddEntAE.Anchor        = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            _ddEntAE.AutoScaleMode = AutoScaleMode.Inherit;
            _ddEntAE.Location      = new System.Drawing.Point(3, startPtY);
            _ddEntAE.Name          = "dddEntAE" + cnt;
            _ddEntAE.Size          = new Size(this.Width - this.Margin.Horizontal - verticalScrollbarWidth, _ddEntAE.Height);
            _ddEntAE.TabIndex      = cnt;
            _ddEntAE.Tag           = "AnatomicEntity";
            startPtY              += _ddEntAE.Height + 3;
            cnt++;
            this.Controls.Add(_ddEntAE);

            // Eloquent Brain Involvement/Imaging Observation
            _ddEntEloquentBrainIO               = new DropDownEntity("Eloquent Brain Involvement (Imaging Observation)", VasariTemplateData.EloquentBrainInvolvementData, false);
            _ddEntEloquentBrainIO.Anchor        = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            _ddEntEloquentBrainIO.AutoScaleMode = AutoScaleMode.Inherit;
            _ddEntEloquentBrainIO.Location      = new System.Drawing.Point(3, startPtY);
            _ddEntEloquentBrainIO.Name          = "ddEntEloquentBrainIO" + cnt;
            _ddEntEloquentBrainIO.Size          = new Size(this.Width - this.Margin.Horizontal - verticalScrollbarWidth, _ddEntEloquentBrainIO.Height);
            _ddEntEloquentBrainIO.TabIndex      = cnt;
            _ddEntEloquentBrainIO.Tag           = "ImagingObservation";
            startPtY += _ddEntEloquentBrainIO.Height + 3;
            cnt++;
            this.Controls.Add(_ddEntEloquentBrainIO);

            // Eloquent Brain Involvement/Imaging Observation
            _lesionAE               = new DropDownEntity("Lesion (Imaging Observation)", VasariTemplateData.LesionData, false);
            _lesionAE.Anchor        = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            _lesionAE.AutoScaleMode = AutoScaleMode.Inherit;
            _lesionAE.Location      = new System.Drawing.Point(3, startPtY);
            _lesionAE.Name          = "lesionAE" + cnt;
            _lesionAE.Size          = new Size(this.Width - this.Margin.Horizontal - verticalScrollbarWidth, _lesionAE.Height);
            _lesionAE.TabIndex      = cnt;
            _lesionAE.Tag           = "ImagingObservation";
            startPtY += _lesionAE.Height + 3;
            cnt++;
            this.Controls.Add(_lesionAE);

            DropDownEntity ddEnt;

            // ImagingObservationCharacteristic for Lesion/ImagingObservation
            foreach (KeyValuePair <string, List <KeyValuePair <string, string> > > entity in VasariTemplateData.ImagingObservationCharData)
            {
                ddEnt          = new DropDownEntity(entity.Key, entity.Value, false);
                ddEnt.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
                ddEnt.Location = new System.Drawing.Point(25, startPtY);
                ddEnt.Name     = "dddEnt" + cnt;
                ddEnt.Size     = new Size(this.Width - this.Margin.Horizontal - verticalScrollbarWidth - 20, ddEnt.Height);
                ddEnt.TabIndex = cnt;
                ddEnt.Tag      = "ImagingObservationCharacteristic";
                startPtY      += ddEnt.Height + 3;
                cnt++;
                this.Controls.Add(ddEnt);
            }

            this.ResumeLayout(false);
        }