Beispiel #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.WeeklyRankings);

            WeekSpinner.Initialise(this, weeks, Resource.Id.weekRankingInput, true, UpdateRankingsListView);
        }
Beispiel #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.VoteOff);

            CoupleSpinner.Initialise(this, Repo.GetAllCouples().ToList(), Resource.Id.voteCoupleSpinner);
            WeekSpinner.Initialise(this, weeks, Resource.Id.voteOffWeekSpinner);
            InitialiseVoteButton();
        }
Beispiel #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.EditScore);

            InitialiseButtons();
            CoupleSpinner.Initialise(this, Repo.GetAllCouples(), Resource.Id.editScoreCoupleSpinner, true, PopulateScoresAndWeeks);
            WeekSpinner.Initialise(this, weeks, Resource.Id.editScoreWeekSpinner, true, PopulateDances);
            DanceSpinner.Initialise(this, Repo.GetAllDances(), Resource.Id.editScoreDanceSpinner, true, PopulateScore);
        }
Beispiel #4
0
        void InitialiseWeekInput()
        {
            Action updateInputsOnSelect = () =>
            {
                CoupleSpinner.Update(this, PossibleCouples, Resource.Id.coupleInput);
                if (PossibleCouples.Count == 0)
                {
                    Alert.ShowAlertWithSingleButton(this, "Warning", "This week has already been populated", "OK");
                }
                UpdateWeekStatsButtonVis();
            };

            WeekSpinner.Initialise(this, weeks, Resource.Id.weekInput, true, updateInputsOnSelect);
        }