public UserManagerWindow() { userStatus = kernel.Get <IUserStatus>(); accountManager = kernel.Get <IAccountManager>(); InitializeComponent(); LoadUsers(); // ładuje userów do comboBoxa }
public App(IConfiguration config, IInitialiser initialiser, IUserStatus userStatus, Floor floor, IElevatorProcessing elevatorProcessing) { _config = config; _initialiser = initialiser; _floor = floor; _userStatus = userStatus; _elevatorProcessing = elevatorProcessing; }
public IUserStatus SetOffline(IUserStatus userStatus) { var status = GetUserStatus(userStatus.UserId); if (status == null) return userStatus; status.Online = false; status.LastDate = DateTime.Now; return status; }
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(); }
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; }
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; }
public static bool GetAvailable(IUserStatus status) { return(status is UserStatusOnline); }
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(); }
public AccountManager() { userStatus = kernel.Get <IUserStatus>(); sCryptHash = kernel.Get <ISCryptHashing>(); }
public DishController(IDish dishRepo, IRecipe recipeRepo, IUserStatus statusRepo) { _dishRepository = dishRepo; _recipeRepository = recipeRepo; _statusRepository = statusRepo; }
public UserStatusesController(IUserStatus repository, IMapper mapper) { _repository = repository; _mapper = mapper; }