Inheritance: FormValidationExample.Infrastructure.ValidatableViewModelBase
Exemplo n.º 1
0
        public MainViewModel(IUserRegistrationService userRegistrationService)
        {
            UserRegistrationService = userRegistrationService;

            InterestSelectorViewModel = new InterestSelectorViewModel();
            InterestSelectorViewModel.SelectedInterestsChanged += OnSelectedInterestsChanged;

            ValidateCommand = new RelayCommand(Validate);

            ConfigureValidationRules();
            Validator.ResultChanged += OnValidationResultChanged;
        }
Exemplo n.º 2
0
        public MainViewModel(IUserRegistrationService userRegistrationService)
        {
            UserRegistrationService = userRegistrationService;

            InterestSelectorViewModel = new InterestSelectorViewModel();
            InterestSelectorViewModel.SelectedInterestsChanged += OnSelectedInterestsChanged;

            ValidateCommand = new RelayCommand(Validate);

            ConfigureValidationRules();
            Validator.ResultChanged += OnValidationResultChanged;
        }
Exemplo n.º 3
0
 public InterestItemViewModel(string name, InterestSelectorViewModel parentSelector)
 {
     Name           = name;
     ParentSelector = parentSelector;
 }
 public InterestItemViewModel(string name, InterestSelectorViewModel parentSelector)
 {
     Name = name;
     ParentSelector = parentSelector;
 }