Beispiel #1
0
        public BreastCancerSampleInformationForm()
        {
            InitializeComponent();

            var headers = ConverterUtils.GetItems <BreastCancerSampleItem, SampleInfoAttribute>();

            foreach (var header in headers)
            {
                var column = new DataGridViewTextBoxColumn();
                column.DataPropertyName = header.PropertyName;
                column.HeaderText       = header.PropertyName;
                column.Resizable        = System.Windows.Forms.DataGridViewTriState.True;
                column.SortMode         = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
                siGrids.Columns.Add(column);
            }
        }
Beispiel #2
0
        public BreastCancerSampleItemDefinitionBuilderUI()
        {
            InitializeComponent();

            headers = ConverterUtils.GetItems <BreastCancerSampleItem, SampleInfoAttribute>();

            propertyNames = (from h in headers
                             orderby h.PropertyName
                             select h.PropertyName).ToList();

            defaultValues = new BindingList <DefaultValue>(
                (from pn in propertyNames
                 select new DefaultValue()
            {
                PropertyName = pn,
                Value = string.Empty
            }).ToList());

            propertyNames.Insert(0, string.Empty);

            colPropertyName.Items.AddRange(propertyNames.ToArray());

            this.Text = Constants.GetSqhVanderbiltTitle(title, version);
        }