Example #1
0
        private void HandleConfig()
        {
            if (config.GameServer == Server.Rewritten)
            {
                currentAccountList        = rewrittenAccountList;
                gamePatcher               = rewrittenPatcher;
                loginHandler              = rewrittenLoginHandler;
                gameHandler               = rewrittenGameHandler;
                gridHandler               = rewrittenGridHandler;
                rewrittenMenuItem.Checked = true;
                clashMenuItem.Checked     = false;
                accountGrid.Columns[ToonSlots.Index].Visible = false;
            }
            else
            {
                currentAccountList        = clashAccountList;
                gamePatcher               = clashPatcher;
                loginHandler              = clashLoginHandler;
                gameHandler               = clashGameHandler;
                gridHandler               = clashGridHandler;
                rewrittenMenuItem.Checked = false;
                clashMenuItem.Checked     = true;
                accountGrid.Columns[ToonSlots.Index].Visible = true;
            }

            if (config.SelectEndGames)
            {
                endSelectedMenuItem.Visible             = true;
                accountGrid.Columns[End.Index].ReadOnly = false;
            }
        }
Example #2
0
 public FormBuilderController(IFormBuilderService formBuilderService,
                              INotificationService notificationService,
                              ILogger <ProductController> logger,
                              IConfiguration configuration,
                              IGridHandler gridHandler)
 {
     _notificationService = notificationService;
     _logger             = logger;
     _configuration      = configuration;
     _gridHandler        = gridHandler;
     _formBuilderService = formBuilderService;
 }
Example #3
0
 public ProductController(IProductService productService,
                          INotificationService notificationService,
                          ILogger <ProductController> logger,
                          IConfiguration configuration,
                          IProductImageService productImageService,
                          IGridHandler gridHandler)
 {
     _productService      = productService;
     _notificationService = notificationService;
     _logger              = logger;
     _configuration       = configuration;
     _productImageService = productImageService;
     _gridHandler         = gridHandler;
 }
Example #4
0
 public void BindCell(IGridHandler grid, ICellDataSource source, int columnIndex, ref int dataIndex)
 {
     this.grid = grid;
     if (dataCell != null)
     {
         var cellhandler = (ICellHandler)dataCell.Handler;
         if (!cellsAdded)
         {
             cellhandler.AddCells(Control);
             cellsAdded = true;
         }
         SetCellAttributes();
         cellhandler.BindCell(source, this, columnIndex, ref dataIndex);
     }
 }
Example #5
0
 public void Setup(IGridHandler gridHandler)
 {
     GridHandler = gridHandler;
 }
Example #6
0
 public GridHandlerTableDelegate(IGridHandler handler)
 {
     this.Handler = handler;
 }
Example #7
0
 public GridController(IGridHandler gridHandler, ILogger <GridController> logger, IConfiguration configuration)
 {
     _gridHandler   = gridHandler;
     _logger        = logger;
     _configuration = configuration;
 }
Example #8
0
 public virtual void Setup(IGridHandler gridHandler)
 {
     this.GridHandler = gridHandler;
 }