示例#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();
        }
        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();
        }
        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();
        }