public ResultViewModel() { IAppConfigRepository appConfigRepository = new AppConfigRepository(); _appConfig = appConfigRepository.GetConfig(); ExitCommand = new RelayCommand<object>(ProcessExit); CheckCommand = new RelayCommand<object>(ProcessCheck); Messenger.Default.Register<Protocol>(this, Init); }
public AddQuestionViewModel() { LoginCommand = new RelayCommand<object>(AddAnswer, IsValidForm); IAppConfigRepository appConfigRepository = new AppConfigRepository(); _appConfig = appConfigRepository.GetConfig(); }