public override void Init() { base.Init(); _systemStatusService = GlobalContext.GetServices <ISystemStatusService>().First(); RegisterTimer(new TimeSpan(0, 0, 0, 1), Tick); }
public ComposeSystemStatusViewModel(ISystemStatusService SystemStatusService) { this.sendSystemStatusCommand = new DelegateCommand(this.SendSystemStatus); this.cancelSystemStatusCommand = new DelegateCommand(this.CancelSystemStatus); this.confirmExitInteractionRequest = new InteractionRequest<Confirmation>(); this.sendState = NormalStateKey; this.SystemStatusService = SystemStatusService; }
public ComposeSystemStatusViewModel(ISystemStatusService SystemStatusService) { this.sendSystemStatusCommand = new DelegateCommand(this.SendSystemStatus); this.cancelSystemStatusCommand = new DelegateCommand(this.CancelSystemStatus); this.confirmExitInteractionRequest = new InteractionRequest <Confirmation>(); this.sendState = NormalStateKey; this.SystemStatusService = SystemStatusService; }
public deviceController(IUnitService unitService, IFlushService flushService, ISystemStatusService systemStatusService, IPasswordService passwordService, IOptions <BaseUrlOptions> urlOptions)//IMapper mapper) { /*_mapper = mapper;*/ _unitService = unitService; _flushService = flushService; _systemStatusService = systemStatusService; _passwordService = passwordService; _urlOptions = urlOptions.Value; }
public SystemViewModel(ISystemStatusService SystemStatusService, IRegionManager regionManager) { this.composeMessageCommand = new DelegateCommand <object>(this.ComposeMessage); this.replyMessageCommand = new DelegateCommand <object>(this.ReplyMessage, this.CanReplyMessage); this.openMessageCommand = new DelegateCommand <SystemStatusDocument>(this.OpenMessage); this.messagesCollection = new ObservableCollection <SystemStatusDocument>(); this.Messages = new ListCollectionView(this.messagesCollection); this.Messages.CurrentChanged += (s, e) => this.replyMessageCommand.RaiseCanExecuteChanged(); this.SystemStatusService = SystemStatusService; this.regionManager = regionManager; var task = this.Initialize(); }
public SystemViewModel(ISystemStatusService SystemStatusService, IRegionManager regionManager) { this.composeMessageCommand = new DelegateCommand<object>(this.ComposeMessage); this.replyMessageCommand = new DelegateCommand<object>(this.ReplyMessage, this.CanReplyMessage); this.openMessageCommand = new DelegateCommand<SystemStatusDocument>(this.OpenMessage); this.messagesCollection = new ObservableCollection<SystemStatusDocument>(); this.Messages = new ListCollectionView(this.messagesCollection); this.Messages.CurrentChanged += (s, e) => this.replyMessageCommand.RaiseCanExecuteChanged(); this.SystemStatusService = SystemStatusService; this.regionManager = regionManager; var task = this.Initialize(); }
public ControllerLogViewModel(ISystemStatusService SystemStatusService) { this.goBackCommand = new DelegateCommand(this.GoBack); this.SystemStatusService = SystemStatusService; }
public TimeAlertService(ISystemStatusService statusService) { _statusService = statusService; _statusService.StatusUpdatedEvent += _statusService_StatusUpdatedEvent; }