public void Execute(AddProjectionDelegate addProjection) { var result = _modelMapper.CreateProjectionEntries(fillColumns: false); foreach (var row in SelectedRows.OrderBy(x => x.Index)) { var dataRow = result.AddRow(); result._.Column[dataRow] = row.GetValue(_.Column); } addProjection(TypeName, result); }
private void ShowDialog(string defaultTypeName, ModelMapper modelMapper, AddProjectionDelegate addProjection) { _presenter = new Presenter(modelMapper, _dataView, _textBoxName, defaultTypeName, _checkBoxSortBySelection); _addProjection = addProjection; ShowDialog(); }
public static void Show(string defaultTypeName, ModelMapper modelMapper, AddProjectionDelegate addProjection) { new ProjectionWindow().ShowDialog(defaultTypeName, modelMapper, addProjection); }