예제 #1
0
        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);
        }
예제 #2
0
 public AddQuestionViewModel()
 {
     LoginCommand = new RelayCommand<object>(AddAnswer, IsValidForm);
     IAppConfigRepository appConfigRepository = new AppConfigRepository();
     _appConfig = appConfigRepository.GetConfig();
 }