示例#1
0
        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;
        }
示例#4
0
 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;
 }
示例#5
0
        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();
        }
示例#6
0
        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();
        }
示例#7
0
        public ControllerLogViewModel(ISystemStatusService SystemStatusService)
        {
            this.goBackCommand = new DelegateCommand(this.GoBack);

            this.SystemStatusService = SystemStatusService;
        }
示例#8
0
        public ControllerLogViewModel(ISystemStatusService SystemStatusService)
        {
            this.goBackCommand = new DelegateCommand(this.GoBack);

            this.SystemStatusService = SystemStatusService;
        }
示例#9
0
 public TimeAlertService(ISystemStatusService statusService)
 {
     _statusService = statusService;
     _statusService.StatusUpdatedEvent += _statusService_StatusUpdatedEvent;
 }