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