コード例 #1
0
        public void Set(ref GADataSet gads)
        {
            gADataSet = gads;

            this.toolStripComboBox1.ComboBox.DataSource  = this.gADataSet.CrossOver;
            this.toolStripComboBox1.ComboBox.ValueMember = this.gADataSet.CrossOver.TypeColumn.ColumnName;
            this.toolStripComboBox2.ComboBox.DataSource  = this.gADataSet.Mutation;
            this.toolStripComboBox2.ComboBox.ValueMember = this.gADataSet.Mutation.TypeColumn.ColumnName;
            this.toolStripComboBox3.ComboBox.DataSource  = this.gADataSet.Selection;
            this.toolStripComboBox3.ComboBox.ValueMember = this.gADataSet.Selection.TypeColumn.ColumnName;
            this.toolStripComboBox4.ComboBox.DataSource  = this.gADataSet.Reinsertion;
            this.toolStripComboBox4.ComboBox.ValueMember = this.gADataSet.Reinsertion.TypeColumn.ColumnName;
            this.toolStripComboBox5.ComboBox.DataSource  = this.gADataSet.Termination;
            this.toolStripComboBox5.ComboBox.ValueMember = this.gADataSet.Termination.TypeColumn.ColumnName;
        }
コード例 #2
0
        public void Set(ref GADataSet set)
        {
            this.ConditionsBS.SuspendBinding();
            this.DataBS.SuspendBinding();

            this.gADataSet.Dispose();
            this.gADataSet = null;

            this.gADataSet = set;

            this.ConditionsBS.DataSource = set;
            this.DataBS.DataSource       = set;

            this.DataBS.ResumeBinding();
            this.ConditionsBS.ResumeBinding();

            this.knapConditionsDataGridView.AutoGenerateColumns = true;
            this.knapDataDataGridView.AutoGenerateColumns       = true;
        }