private void btnOk_Click(object sender, System.EventArgs e) { List <Variable> variables = new List <Variable>(); foreach (DataGridViewRow row in uiDataGridView_Variables.Rows) { if (Convert.ToBoolean(row.Cells[uiDataGridViewColumn_VariableCheck.Name].Value) == true) { variables.Add((Variable)row.DataBoundItem); } } presenter.createHistograms(variables, selectedDataSet()); Close(); }
private void btnOk_Click(object sender, System.EventArgs e) { List <Variable> variables = new List <Variable>(); foreach (DataGridViewRow row in uiDataGridView_Variables.Rows) { if (Convert.ToBoolean(row.Cells[uiDataGridViewColumn_VariableCheck.Name].Value) == true) { variables.Add((Variable)row.DataBoundItem); } } presenter.createHistograms(variables); Close(); Globals.ExcelAddIn.Application.ActiveWindow.Activate(); }