예제 #1
0
        // Back to contacts page
        private void Back()
        {
            _userManager.ChangeUserStatus(UserState.online);

            _chatManager.UserDisconnected();
            _navigationService.GoBack();
            //_chatManager.NotifyViewModelbackNavigation
        }
예제 #2
0
        void _SaveConfig(DeviceInfoModel dev)
        {
            //_navigationService.NavigateTo("Shell");

            selectedCard.strCardType = LstCardsSelectedItem.DeviceTypeName;


            Messenger.Default.Send <DeviceSlectedConfigMsg>(new DeviceSlectedConfigMsg(selectedCard));
            _navigationService.GoBack();
        }
        public PatientViewModel(IFrameNavigationService navigationService)
        {
            _navigationService = navigationService;

            Messenger.Default.Register <Pacient>(this, "Patient", pat =>
            {
                Pacient = pat;
                RaisePropertyChanged(nameof(Pacient));
                PhotoPath = "../Images/ic_account_circle_white_48dp_2x.png";
                RaisePropertyChanged(nameof(PhotoPath));
            });

            Back = new RelayCommand(async() =>
            {
                source.Cancel();
                await Task.Delay(500);
                _navigationService.GoBack();
            });

            CardioPlotLst      = new ObservableCollection <CardioPlot>();
            HeartRatePlotLst   = new ObservableCollection <HeartRatePlot>();
            TemperaturePlotLst = new ObservableCollection <TemperaturePlot>();

            _timer          = new DispatcherTimer();
            _timer.Tick    += _timer_Tick;
            _timer.Interval = TimeSpan.FromSeconds(1);
        }
예제 #4
0
 //Logout to register page.
 private void Logout()
 {
     if (_userManager.InvokeLogout())
     {
         _navigationService.GoBack();
     }
 }
예제 #5
0
 private void Save()
 {
     navigator.GoBack();
 }
예제 #6
0
 private void goBack()
 {
     _navigationService.GoBack();
 }
예제 #7
0
 private void OnGoBackMessage(GoBackMessage message)
 {
     _frameNavigationService.GoBack();
 }
예제 #8
0
 private void BackExecute()
 {
     _navigationService.GoBack();
 }
예제 #9
0
 /// <summary>
 ///     Navigates to the previous page in the current navigation stack if possible.
 /// </summary>
 public void NavigateBack()
 {
     _navigationService.GoBack();
 }
예제 #10
0
 private void cancel()
 {
     _navigationService.GoBack();
 }