public UserManagerWindow()
        {
            userStatus     = kernel.Get <IUserStatus>();
            accountManager = kernel.Get <IAccountManager>();

            InitializeComponent();
            LoadUsers(); // ładuje userów do comboBoxa
        }
示例#2
0
 public App(IConfiguration config, IInitialiser initialiser, IUserStatus userStatus, Floor floor, IElevatorProcessing elevatorProcessing)
 {
     _config             = config;
     _initialiser        = initialiser;
     _floor              = floor;
     _userStatus         = userStatus;
     _elevatorProcessing = elevatorProcessing;
 }
示例#3
0
        public IUserStatus SetOffline(IUserStatus userStatus)
        {
            var status = GetUserStatus(userStatus.UserId);

            if (status == null) return userStatus;

            status.Online = false;
            status.LastDate = DateTime.Now;

            return status;
        }
示例#4
0
 public AgendaWindow()
 {
     userStatus     = kernelUserManager.Get <IUserStatus>();
     accountManager = kernelUserManager.Get <IAccountManager>();
     InitializeComponent();
     businessLogic = kernel.Get <IBusinessLogic>();
     SetDateOnStart(businessLogic.CurrentDateSet()); // inicjalizacja dat
     SectionSetToDefaultMulti();                     //ustaw labele na default
     SectionFillMulti();                             // wypelnij wszystkie
     SetUserName();
 }
示例#5
0
        public IUserStatus SetOnline(IUserStatus userStatus)
        {
            var status = GetUserStatus(userStatus.UserId);

            if (status != null)
            {
                status.ConnectionId = userStatus.ConnectionId;
                status.Online = true;
                return status;
            }

            UserStatuses.Add(userStatus.UserId, userStatus);
            return userStatus;
        }
示例#6
0
        public Engine(ICommandParser commandParser, IConsoleManager consoleManager,
                      IMenuManager menuManager, IGenerator generator, ILogger logger,
                      IUserStatus userStatus, IGameFactory gameFactory)
        {
            // Display Setup
            ConsoleManager = consoleManager;
            MenuManager    = menuManager;
            CommandParser  = commandParser;
            Logger         = logger;
            Generator      = generator;

            // Player Creation Setup
            UserStatus     = userStatus;
            GameFactory    = gameFactory;
            PlayerProgress = PlayerProgress.NotBorn;
        }
示例#7
0
 public static bool GetAvailable(IUserStatus status)
 {
     return(status is UserStatusOnline);
 }
示例#8
0
 public Initialiser(Elevator elevator, Floor floor, IUserStatus userStatus)
 {
     _elevator   = elevator;
     _floor      = floor;
     _userStatus = userStatus;
 }
 public CredentialsWindow()
 {
     userStatus     = kernel.Get <IUserStatus>();
     accountManager = kernel.Get <IAccountManager>();
     InitializeComponent();
 }
示例#10
0
 public AccountManager()
 {
     userStatus = kernel.Get <IUserStatus>();
     sCryptHash = kernel.Get <ISCryptHashing>();
 }
示例#11
0
 public DishController(IDish dishRepo, IRecipe recipeRepo, IUserStatus statusRepo)
 {
     _dishRepository   = dishRepo;
     _recipeRepository = recipeRepo;
     _statusRepository = statusRepo;
 }
 public UserStatusesController(IUserStatus repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }