protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Window.RequestFeature(WindowFeatures.NoTitle);
            SetContentView(Resource.Layout.Questionary);

            _settings                   = new RuntimeSettingsAndroid();
            _optionsStore               = new OptionsStoreSqlLite(_settings);
            _questionsStore             = new QuestionsStoreSqlLite(_settings, _optionsStore);
            _session                    = new QuestionarySession(_questionsStore, _optionsStore);
            _questionNumberTextView     = FindViewById <TextView>(Resource.Id.QuestionNumberTextView);
            _questionTextView           = FindViewById <TextView>(Resource.Id.QuestionTextView);
            _optionsListView            = FindViewById <ListView>(Resource.Id.OptionsListView);
            _lifesTextView              = FindViewById <TextView>(Resource.Id.LifesTextView);
            _scoresTextView             = FindViewById <TextView>(Resource.Id.ScoresTextView);
            _optionsListView.ChoiceMode = ChoiceMode.Single;
            _optionsListView.ItemClick += OptionsListViewOnItemClick;

            UpdatePontuations();
            PopulateQuestion();
        }
Пример #2
0
 public ScoresDialog(QuestionarySession session)
 {
     _session = session;
     _scores  = new ScoreUserStoreSqlLite(new RuntimeSettingsAndroid());
 }