Example #1
0
        public MainViewModel()
        {
            BackCommand = new RelayCommand(param => BackCommandAction());

            EventAggregator eventAgg = (EventAggregator)ServiceLocator.Current.GetInstance<IEventAggregator>();
            eventAgg.GetEvent<CompositePresentationEvent<SharingData>>().Subscribe(OnCopyDataReceived, ThreadOption.UIThread);
        }
        public CreationViewModel()
        {
            FindUserPictureCommand = new RelayCommand(param => FindUserPicture());
            CreateUserCommand = new RelayCommand(param => CreateUser());

            CreatePatientCommand = new RelayCommand(param => CreatePatient());

            FindObsPictureCommand = new RelayCommand(param => FindObsPicture());
            CreateObsCommand = new RelayCommand(param => CreateObs());
        }
Example #3
0
        public LiveViewModel()
        {
            _isLiveStarted = false;
            ButtonContent = _startLiveText;

            _heartQueue = new ObservableCollection<KeyValuePair<DateTime, double>>();
            _tempQueue = new ObservableCollection<KeyValuePair<DateTime, double>>();

            LiveCommand = new RelayCommand(param => LiveCommandAction());
        }
Example #4
0
 public LoginViewModel()
 {
     LeaveCommand = new RelayCommand(param => LeaveCommandAction());
     LoginCommand = new RelayCommand(param => LoginCommandAction());
 }
Example #5
0
 public PictureModel(byte[] picture, PatientsViewModel viewModel)
 {
     Picture = picture;
     Command = new RelayCommand(x => ZoomPicture());
 }
        public PatientsViewModel()
        {
            PatientInfoVisibility = Visibility.Hidden;
            PatientObservationVisibility = Visibility.Hidden;

            _weightQueue = new ObservableCollection<KeyValuePair<DateTime, double>>();
            _bloodPressureQueue = new ObservableCollection<KeyValuePair<DateTime, double>>();
            Pictures = new ObservableCollection<PictureModel>();

            DeletePatientCommand = new RelayCommand(param => DeletePatient());
        }
Example #7
0
 public UsersViewModel()
 {
     DeleteUserCommand = new RelayCommand(param => DeleteUser());
 }
 public PicutreViewModel(byte[] p)
 {
     Picture = p;
     PrintCommand = new RelayCommand(param => PrintAction());
 }