예제 #1
0
 public DefaultRailsEditViewFactoryBase(
     IRailsIndexViewFactory <UIElement> railsIndexViewFactory,
     IRailsEditViewModelFactory <Binding> railsEditViewModelFactory,
     IGridService gridService)
     : base(railsIndexViewFactory, railsEditViewModelFactory, gridService)
 {
 }
예제 #2
0
 protected DefaultRailsEditViewFactoryBase(
     IRailsIndexViewFactory railsIndexViewFactory,
     IRailsEditViewModelFactory railsEditViewModelFactory,
     IGridService gridService)
     : base(railsIndexViewFactory, railsEditViewModelFactory, gridService)
 {
 }
 public static IRailsIndexViewFactory Resolve(
     this IRailsIndexViewFactory factory,
     IRailsEditViewFactory editViewFactory = null,
     IRailsEditViewModelFactory railsEditViewModelFactory = null,
     IGridService gridService = null)
 {
     return(factory
            ?? new DefaultRailsIndexViewFactory(editViewFactory, railsEditViewModelFactory, gridService));
 }
 public DefaultRailsEditViewFactory(
     IRailsIndexViewFactory railsIndexViewFactory         = null,
     IRailsEditViewModelFactory railsEditViewModelFactory = null,
     IGridService gridService = null)
     : base(
         railsIndexViewFactory.Resolve(),
         railsEditViewModelFactory.Resolve(),
         gridService.Resolve())
 {
 }
 protected DefaultRailsEditViewFactoryBase(
     IRailsIndexViewFactory <TViewControl> railsIndexViewFactory,
     IRailsEditViewModelFactory <TBinding> railsEditViewModelFactory,
     IGridService <TGrid, TViewControl> gridService)
 {
     this.RailsIndexViewFactory     = railsIndexViewFactory;
     this.RailsEditViewModelFactory = railsEditViewModelFactory;
     this.GridService      = gridService;
     this.RailsBindCreator = this.RailsEditViewModelFactory.RailsBindCreator;
 }
예제 #6
0
 public static IRailsEditViewFactory Resolve(this IRailsEditViewFactory factory, IRailsIndexViewFactory indexFactory = null)
 {
     return(factory ?? new DefaultRailsEditViewFactory(indexFactory));
 }