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()); }
public LiveViewModel() { _isLiveStarted = false; ButtonContent = _startLiveText; _heartQueue = new ObservableCollection<KeyValuePair<DateTime, double>>(); _tempQueue = new ObservableCollection<KeyValuePair<DateTime, double>>(); LiveCommand = new RelayCommand(param => LiveCommandAction()); }
public LoginViewModel() { LeaveCommand = new RelayCommand(param => LeaveCommandAction()); LoginCommand = new RelayCommand(param => LoginCommandAction()); }
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()); }
public UsersViewModel() { DeleteUserCommand = new RelayCommand(param => DeleteUser()); }
public PicutreViewModel(byte[] p) { Picture = p; PrintCommand = new RelayCommand(param => PrintAction()); }