Ejemplo n.º 1
0
        public ResultViewModel(TestModel Value, float ScoreValue)
        {
            _test = Value;
            _score = ScoreValue;
            _competedTest = new CompetedTest(ScoreValue, Value.Id);

        }
Ejemplo n.º 2
0
 private void OnAppearingResult(TestModel Value,float ScoreValue)
 {
     _score = 0;
     _numerator.Reset();
     ((MasterDetailPage)App.Current.MainPage).Detail = new ResultPage(Value, ScoreValue);
     ((MasterDetailPage) App.Current.MainPage).IsPresented = false;
 }
Ejemplo n.º 3
0
 public QuestionViewModel(TestModel value)
 {
     _test = value;
     _numerator = _test.Questions.GetEnumerator();
     _currentQuestion = _numerator.Current;
 }
Ejemplo n.º 4
0
 private void OnSelectedItem(TestModel value)
 {
     ((MasterDetailPage)App.Current.MainPage).Detail=new QuestionPage(value);
     ((MasterDetailPage) App.Current.MainPage).IsPresented = false;
     //   await Navigation.PushAsync(new QuestionPage(value));
 }
Ejemplo n.º 5
0
 public ResultPage(TestModel Value,float ScoreValue)
 {
     InitializeComponent();
     _viewModel = new ResultViewModel(Value, ScoreValue) { Navigation = Navigation };
     BindingContext = _viewModel;
 }
Ejemplo n.º 6
0
 public QuestionPage(TestModel value)
 {
     InitializeComponent();
     _viewModel = new QuestionViewModel(value) {Navigation = Navigation};
     BindingContext = _viewModel;
 }