예제 #1
0
        public NewUserViewModel(INavigationService navigationService, IPageDialogService dialogService) : base(navigationService)
        {
            _dialogService     = dialogService;
            _navigationService = navigationService;
            _username          = new ValidatableObject <string>();
            _password          = new ValidatableObject <string>();
            _lastname          = new ValidatableObject <string>();
            _firstname         = new ValidatableObject <string>();

            AddValidations();
        }
예제 #2
0
        public AddDoctorViewModel(INavigationService navigationService, IPageDialogService dialogService) : base(navigationService)
        {
            _dialogService     = dialogService;
            _navigationService = navigationService;
            _username          = new ValidatableObject <string>();
            _lastname          = new ValidatableObject <string>();
            _hospital          = new ValidatableObject <string>();
            _speciality        = new ValidatableObject <string>();
            _phoneNumber       = new ValidatableObject <string>();

            AddValidations();
        }
예제 #3
0
        public UpdateAccountViewModel(INavigationService navigationService, IPageDialogService dialogService) : base(navigationService)
        {
            _dialogService     = dialogService;
            _navigationService = navigationService;
            _username          = new ValidatableObject <string>();
            _lastname          = new ValidatableObject <string>();
            _firstname         = new ValidatableObject <string>();

            int idUser = Convert.ToInt32(App.Current.Properties[PropertiesHelper.Id_User_Key]);

            loadData(idUser);
            AddValidations();
        }
예제 #4
0
        public UpdateDoctorViewModel(INavigationService navigationService, IPageDialogService dialogService) : base(navigationService)
        {
            _dialogService     = dialogService;
            _navigationService = navigationService;
            _username          = new ValidatableObject <string>();
            _lastname          = new ValidatableObject <string>();
            _hospital          = new ValidatableObject <string>();
            _speciality        = new ValidatableObject <string>();
            _phoneNumber       = new ValidatableObject <string>();
            idUser             = Convert.ToInt32(App.Current.Properties[PropertiesHelper.Id_User_Key]);

            loadData(idUser);
            AddValidations();
        }