private void ColumnSelectButtonClick(object sender, EventArgs e) { string[] names = new string[tableModel.ColumnCount]; for (int i = 0; i < names.Length; i++) { names[i] = tableModel.GetColumnName(i); } SelectColumnsForm scf = new SelectColumnsForm(names, multipleColumns); scf.ShowDialog(); multipleColumns = scf.SelectedIndices; }
private void ColumnSelectButtonClick(object sender, EventArgs e) { string[] names = new string[tableModel.ColumnCount]; for (int i = 0; i < names.Length; i++){ names[i] = tableModel.GetColumnName(i); } SelectColumnsForm scf = new SelectColumnsForm(names, multipleColumns); scf.ShowDialog(); multipleColumns = scf.SelectedIndices; }