Beispiel #1
0
 private void bindModelToView()
 {
     ui_ComboBox_SelectDataSets.DataSource    = presenter.dataSets();
     ui_ComboBox_SelectDataSets.DisplayMember = "name";
     //nameDataGridViewTextBoxColumn.DataPropertyName = "name";
     //rangeDataGridViewTextBoxColumn.DataPropertyName = "Range";
     ui_ComboBox_SelectDataSets.SelectedIndexChanged += (obj, eventArgs) =>
     {
         if (selectedDataSet() == null)
         {
             return;
         }
         //dataGridView1.DataSource = selectedDataSet().getVariables();
     };
 }
Beispiel #2
0
 private void bindModelToView()
 {
     ui_ComboBox_SelectDataSets.DataSource    = presenter.dataSets();
     ui_ComboBox_SelectDataSets.DisplayMember = "name";
     //nameDataGridViewTextBoxColumn.DataPropertyName = "name";
     //rangeDataGridViewTextBoxColumn.DataPropertyName = "Range";
     ui_ComboBox_SelectDataSets.SelectedIndexChanged += (obj, eventArgs) =>
     {
         if (selectedDataSet() == null)
         {
             return;
         }
         uiDataGridView_Variables.DataSource          = selectedDataSet().getVariables();
         uiDataGridViewColumn_VariableCheckX.Width    = 20;
         uiDataGridViewColumn_VariableCheckY.Width    = 20;
         uiDataGridView_Variables.Columns[2].ReadOnly = true;
         uiDataGridView_Variables.Columns[3].ReadOnly = true;
     };
 }