Beispiel #1
0
 public AlunoService(IAlunoRepository alunoRepository,
                     INotificator notificator,
                     IAssinaturaService assinaturaService) : base(notificator)
 {
     _alunoRepository   = alunoRepository;
     _assinaturaService = assinaturaService;
 }
Beispiel #2
0
 public ExamService(INotificator notificator,
                    IExamRepository examRepository,
                    IUnitOfWork unitOfWork) : base(notificator)
 {
     _examRepository = examRepository;
     _unitOfWork     = unitOfWork;
 }
 public ProdutosController(IProdutoService produtoService,
                           IMapper mapper,
                           INotificator notificator) : base(notificator)
 {
     _produtoService = produtoService;
     _mapper         = mapper;
 }
Beispiel #4
0
        public EyesInTheForest(INotificator notificator, IHudMenu hudMenu)
            : base(notificator, hudMenu)
        {
            var radiusData = new SpecialData(AbilityId.treant_eyes_in_the_forest, "vision_aoe").GetValue(1);

            this.radius = new Vector3(radiusData, -radiusData, -radiusData);
        }
Beispiel #5
0
 public ProductController(IProductRepository productRepository,
                          IMapper mapper, IProductService productService, INotificator notificator) : base(notificator)
 {
     _productRepository = productRepository;
     _mapper            = mapper;
     _productService    = productService;
 }
Beispiel #6
0
        public SplitEarth(INotificator notificator, IHudMenu hudMenu)
            : base(notificator, hudMenu)
        {
            var radiusData = new SpecialData(AbilityId.leshrac_split_earth, "radius").GetValue(3);

            this.radius = new Vector3(radiusData, -radiusData, -radiusData);
        }
Beispiel #7
0
 public ReserveService(IReserveRepository reserveRepository, INotificator notificator,
                       IItemRepository itemRepository, IReserveItemRepository reserveItemRepository) : base(notificator)
 {
     _reserveRepository     = reserveRepository;
     _itemRepository        = itemRepository;
     _reserveItemRepository = reserveItemRepository;
 }
 public UsuarioService(IUsuarioRepository usuarioRepository,
                       IMovimentoRepository movimentoRepository,
                       INotificator notificator) : base(notificator)
 {
     _usuarioRepository   = usuarioRepository;
     _movimentoRepository = movimentoRepository;
 }
Beispiel #9
0
 public TokenService(IOptions <JwtSettings> jwtSettings, ApplicationDbContext context, INotificator notificator, ILogger <TokenService> logger)
 {
     _jwt         = jwtSettings.Value;
     _context     = context;
     _notificator = notificator;
     _logger      = logger;
 }
 public FrotasController(IFrotaService frotaService,
                         IMapper mapper,
                         INotificator notificator) : base(notificator)
 {
     _frotaService = frotaService;
     _mapper       = mapper;
 }
Beispiel #11
0
 public MovimentosController(IMovimentoService movimentoService,
                             IMapper mapper,
                             INotificator notificator) : base(notificator)
 {
     _movimentoService = movimentoService;
     _mapper           = mapper;
 }
 public CasasController(ICasaService casaService, IMapper mapper, INotificator notificator, IUser user)
     : base(notificator, user)
 {
     _casaService = casaService;
     _mapper      = mapper;
     _notificator = notificator;
 }
Beispiel #13
0
        public StolenAbility(IHudMenu hudMenu, INotificator notificator)
        {
            this.notificator = notificator;

            var notificationMenu = hudMenu.NotificationsMenu.GetOrAdd(new Menu("Abilities"));

            notificationMenu.AddTranslation(Lang.Ru, "Способности");
            notificationMenu.AddTranslation(Lang.Cn, "播放声音");

            var menu = notificationMenu.Add(new Menu("Stolen"));

            menu.AddTranslation(Lang.Ru, "Украденные");
            menu.AddTranslation(Lang.Cn, "盗取");

            this.enabled = menu.Add(new MenuSwitcher("Enabled")).SetTooltip("Notify about rubick's stolen abilities");
            this.enabled.AddTranslation(Lang.Ru, "Включено");
            this.enabled.AddTooltipTranslation(Lang.Ru, "Оповещать о украденных способностях Рубика");
            this.enabled.AddTranslation(Lang.Cn, "启用");
            this.enabled.AddTooltipTranslation(Lang.Cn, "通知被" + LocalizationHelper.LocalizeName(HeroId.npc_dota_hero_rubick) + "偷的技能");

            this.ping = menu.Add(new MenuSwitcher("Ping on click")).SetTooltip("Ping ability to allies");
            this.ping.AddTranslation(Lang.Ru, "Оповещать при нажатии");
            this.ping.AddTooltipTranslation(Lang.Ru, "Оповещать союзников при нажатии");
            this.ping.AddTranslation(Lang.Cn, "单击时发出警报");
            this.ping.AddTooltipTranslation(Lang.Cn, "按下時通知盟友");
        }
        public NewGraphicForm(IProject project, ILog log, INotificator notificator)
        {
            // Wywalanie wyjątków.
            if (log == null && notificator == null)
            {
                throw new NullReferenceException("log i notificator są puste");
            }
            else if (log == null)
            {
                Exception error = new NullReferenceException(Factory.GetProgrammerErrorString("log nie może być pusty.", true));
                notificator.Notify(error);
                throw error;
            }
            else if (notificator == null)
            {
                Exception error = new NullReferenceException(Factory.GetProgrammerErrorString("notificator nie może być pusty.", true));
                log.Write(error.Message);
                throw error;
            }

            log.Write(Factory.GetNewInstanceCreationString("NewGraphicForm"), LogMessagesTypes.Detail);

            // Przypisywanie.
            this.notificator = notificator;
            this.project     = project;
            this.log         = log;

            // Inicjalizacja komponentów.
            InitializeComponent();

            // Dopadsowywanie się do ustawień użytkownika.
            nudSizePerPixel.Value = ProgramInfo.MainSettings.StandardRPPEP;

            Reload();
        }
Beispiel #15
0
 public EntityService(IUnitOfWork unitOfWork, AbstractValidator <TEntity> defaultValidator, INotificator notificator, ILogger <EntityService <TEntity> > logger)
 {
     UnitOfWork       = unitOfWork;
     DefaultValidator = defaultValidator;
     Notificator      = notificator;
     Logger           = logger;
 }
Beispiel #16
0
        /// <summary>
        /// Standardowy konstruktor dla StartForm.
        /// </summary>
        /// <param name="log">Log do którego będą zapisywane wiadomości.</param>
        public StartForm(ILog log, INotificator notificator)
        {
            // Wywalanie wyjątków.
            if (log == null && notificator == null)
            {
                throw new NullReferenceException("log i notificator są puste");
            }
            else if (log == null)
            {
                Exception error = new NullReferenceException(Factory.GetProgrammerErrorString("log nie może być pusty.", true));
                notificator.Notify(error);
                throw error;
            }
            else if (notificator == null)
            {
                Exception error = new NullReferenceException(Factory.GetProgrammerErrorString("notificator nie może być pusty.", true));
                log.Write(error.Message);
                throw error;
            }

            log.Write(Factory.GetNewInstanceCreationString("StartForm"), LogMessagesTypes.Detail);

            // Przypisywanie.
            this.notificator = notificator;
            this.log         = log;

            // Inicjalizacja komponentów.
            InitializeComponent();
            Reload();
        }
Beispiel #17
0
        public MortimerKisses(IContext9 context, INotificator notificator, IHudMenu hudMenu)
            : base(context, notificator, hudMenu)
        {
            var radiusData = new SpecialData(AbilityId.snapfire_mortimer_kisses, "impact_radius").GetValue(1);

            this.radius = new Vector3(radiusData, -radiusData, -radiusData);
        }
Beispiel #18
0
 public NotificatorViewModel(INotificator notificator)
 {
     _notificator = notificator;
     Design(MessageType.Info);
     SetLocation();
     InitTimer();
 }
Beispiel #19
0
 public SupplierService(ISupplierRepository supplierRepository,
                        IAddressRepository addressRepository,
                        INotificator notificator) : base(notificator)
 {
     this._supplierRepository = supplierRepository;
     this._addressRepository  = addressRepository;
 }
Beispiel #20
0
 public UsuariosController(IUsuarioService usuarioService,
                           IMapper mapper,
                           INotificator notificator) : base(notificator)
 {
     _usuarioService = usuarioService;
     _mapper         = mapper;
 }
Beispiel #21
0
 public ColetoresController(IColetorService coletorService,
                            IMapper mapper,
                            INotificator notificator) : base(notificator)
 {
     _coletorService = coletorService;
     _mapper         = mapper;
 }
Beispiel #22
0
        public LightStrikeArray(IContext9 context, INotificator notificator, IHudMenu hudMenu)
            : base(context, notificator, hudMenu)
        {
            var radiusData = new SpecialData(AbilityId.lina_light_strike_array, "light_strike_array_aoe").GetValue(3);

            this.radius = new Vector3(radiusData, -radiusData, -radiusData);
        }
 public CursosController(ICursoService cursoService, IMapper mapper, INotificator notificator, IProfessorService professorService)
     : base(notificator)
 {
     _cursoService     = cursoService;
     _mapper           = mapper;
     _professorService = professorService;
 }
Beispiel #24
0
 public ProfessorService(IProfessorRepository professorRepository, INotificator notificator, ICursoRepository cursoRepository, IEnderecoRepository enderecoRepository)
     : base(professorRepository, notificator)
 {
     _professorRepository = professorRepository;
     _cursoRepository     = cursoRepository;
     _enderecoRepository  = enderecoRepository;
 }
Beispiel #25
0
 public ChargeOfDarkness(INotificator notificator, IHudMenu hudMenu)
     : base(notificator, hudMenu)
 {
     this.notificationsEnabled = hudMenu.NotificationsMenu.GetOrAdd(new Menu("Abilities"))
                                 .GetOrAdd(new Menu("Used"))
                                 .GetOrAdd(new MenuSwitcher("Enabled"));
 }
Beispiel #26
0
 public UserManager(IAppContext appContext, IMapper mapper, ILogHelper logger, INotificator notificator)
 {
     _appContext  = appContext;
     _mapper      = mapper;
     _logger      = logger;
     _notificator = notificator;
 }
 public ExpensesController(
     IExpenseService expenseService,
     INotificator notificator)
     : base(notificator)
 {
     _expenseService = expenseService;
 }
 public FornecedorService(IFornecedorRepository fornecedorRepository,
                          IEnderecoRepository enderecoRepository,
                          INotificator notificator) : base(notificator)
 {
     _fornecedorRepository = fornecedorRepository;
     _enderecoRepository   = enderecoRepository;
 }
Beispiel #29
0
 public UsersController(ITokenService tokenService,
                        IUserService userService, IMapper mapper, INotificator notificator)
     : base(userService, mapper, notificator)
 {
     _tokenService = tokenService;
     _userService  = userService;
 }
Beispiel #30
0
 public AuthenticationController(IUsuarioService usuarioService,
                                 IOptions <AppSettings> appSettings,
                                 INotificator notificator) : base(notificator)
 {
     _usuarioService = usuarioService;
     _appSettings    = appSettings.Value;
 }