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);
            }
Example #2
0
 private void ShowDialog(string defaultTypeName, ModelMapper modelMapper, AddProjectionDelegate addProjection)
 {
     _presenter     = new Presenter(modelMapper, _dataView, _textBoxName, defaultTypeName, _checkBoxSortBySelection);
     _addProjection = addProjection;
     ShowDialog();
 }
Example #3
0
 public static void Show(string defaultTypeName, ModelMapper modelMapper, AddProjectionDelegate addProjection)
 {
     new ProjectionWindow().ShowDialog(defaultTypeName, modelMapper, addProjection);
 }