Exemplo n.º 1
0
        public AddUserViewModel()
        {
            Error = "";
            Success = "";

            _user = new User();

            _ioService = new IOService();

            // Commandes
            AddUserCommand = new RelayCommand(param => CreateUser(((PasswordBox)param).Password), param => true);
            OpenCommand = new RelayCommand(param => OpenFileDialog(), param => true);
        }
Exemplo n.º 2
0
        public AddObservationViewModel(PatientObsViewModel viewModel, int patientId)
        {
            _patientObsViewModel = viewModel;
            _patientId = patientId;
            _observation = new Observation();
            _ioService = new IOService();
            _selectedPaths = new List<string>();

            Error = "";

            // Commands
            AddObservationCommand = new RelayCommand(param => AddObservation(), param => true);
            OpenCommand = new RelayCommand(param => OpenFileDialog(), param => true);
        }