コード例 #1
0
 public SchemaGridsHandler(
     IGridBuilder gridBuilder,
     ModelLoader modelLoader)
 {
     _gridBuilder = gridBuilder;
     _modelLoader = modelLoader;
 }
コード例 #2
0
 protected Grid(IGridBuilder <T> gridBuilder,
                IRepository repository,
                ISessionContext sessionContext)
 {
     GridBuilder     = gridBuilder;
     _repository     = repository;
     _sessionContext = sessionContext;
     _modifications  = new List <Action <IGridColumn, T> >();
 }
コード例 #3
0
ファイル: ViewExtensions.cs プロジェクト: mhail/MashCalc
        public static IGridBuilder <G> AddRow <G>(this IGridBuilder <G> builder, params View[] views) where G : Grid
        {
            builder.Col = 0;
            foreach (var view in views)
            {
                builder.Grid.Children.Add(view, builder.Col, builder.Row);
                builder.Col++;
            }
            builder.Row++;

            return(builder);
        }
コード例 #4
0
ファイル: ViewExtensions.cs プロジェクト: mhail/MashCalc
        public static IGridBuilder <G> RowSpan <G>(this IGridBuilder <G> builder, View view, int span = -1) where G : Grid
        {
            if (span < 0)
            {
                span = builder.Grid.ColumnDefinitions.Count;
            }
            builder.Col = 0;
            builder.Grid.Children.Add(view, builder.Col, builder.Col + span, builder.Row, builder.Row + 1);
            builder.Col += span;
            builder.Row++;

            return(builder);
        }
コード例 #5
0
 public GameEngine(IGridBuilder gridBuilder)
 {
     _gridBuilder = gridBuilder ?? throw new ArgumentNullException(nameof(gridBuilder));
 }
コード例 #6
0
 public CompletedTaskGrid(IGridBuilder <Task> gridBuilder,
                          ISessionContext sessionContext,
                          IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #7
0
 public PendingTaskGrid(IGridBuilder <Task> gridBuilder,
                        ISessionContext sessionContext,
                        IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #8
0
 public POSeedListGrid(IGridBuilder <Seed> gridBuilder,
                       ISessionContext sessionContext,
                       IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #9
0
 public CalculatorListGrid(IGridBuilder <Calculator> gridBuilder,
                           ISessionContext sessionContext,
                           IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #10
0
 public EmailTemplateListGrid(IGridBuilder <EmailTemplate> gridBuilder,
                              ISessionContext sessionContext,
                              IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #11
0
 public WeatherListGrid(IGridBuilder <Weather> gridBuilder,
                        ISessionContext sessionContext,
                        IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #12
0
 public PrimeNumbersService(IPrimeNumberGenerator primeNumberGenerator, IGridBuilder gridBuilder)
 {
     _primeNumberGenerator = primeNumberGenerator;
     _gridBuilder = gridBuilder;
 }
コード例 #13
0
 public PhotoCategoryListGrid(IGridBuilder <PhotoCategory> gridBuilder,
                              ISessionContext sessionContext,
                              IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #14
0
ファイル: GameLogic.cs プロジェクト: TomaszChudak/Battleships
 public GameLogic(ISettingsChecker settingsChecker, IGridBuilder gridBuilder, ICoordinateParser coordinateParser)
 {
     _settingsChecker  = settingsChecker;
     _gridBuilder      = gridBuilder;
     _coordinateParser = coordinateParser;
 }
コード例 #15
0
 public TaskTypeListGrid(IGridBuilder <TaskType> gridBuilder,
                         ISessionContext sessionContext,
                         IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #16
0
 public ReceivePurchaseOrderLineItemGrid(IGridBuilder <PurchaseOrderLineItem> gridBuilder,
                                         ISessionContext sessionContext,
                                         IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #17
0
 public InventoryProductListGrid(IGridBuilder <InventoryProduct> gridBuilder,
                                 ISessionContext sessionContext,
                                 IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #18
0
 public ColumnBuilderFactory(IGridBuilder <TModel> gridBuilder)
 {
     gridBuilderReference = gridBuilder;
 }
コード例 #19
0
 public ChemicalListGrid(IGridBuilder <Chemical> gridBuilder,
                         ISessionContext sessionContext,
                         IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #20
0
 public POFertilizerListGrid(IGridBuilder <Fertilizer> gridBuilder,
                             ISessionContext sessionContext,
                             IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #21
0
 public POMaterialListGrid(IGridBuilder <Material> gridBuilder,
                           ISessionContext sessionContext,
                           IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #22
0
 public DocumentListGrid(IGridBuilder <Document> gridBuilder,
                         ISessionContext sessionContext,
                         IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #23
0
 public PurchaseOrderListGrid(IGridBuilder <PurchaseOrder> gridBuilder,
                              ISessionContext sessionContext,
                              IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #24
0
 public VendorContactListGrid(IGridBuilder <VendorContact> gridBuilder,
                              ISessionContext sessionContext,
                              IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }
コード例 #25
0
 public PurchaseOrderSelectorGrid(IGridBuilder <BaseProduct> gridBuilder,
                                  ISessionContext sessionContext,
                                  IRepository repository)
     : base(gridBuilder, repository, sessionContext)
 {
 }