Exemplo n.º 1
0
        void ResetPage()
        {
            CoupleSpinner.Update(this, PossibleCouples, Resource.Id.coupleInput);
            DanceSpinner.Update(this, Repo.GetAllDances().ToList(), Resource.Id.danceInput);
            EditText scoreInput = FindViewById <EditText>(Resource.Id.scoreInput);

            scoreInput.Text = "0";
            UpdateWeekStatsButtonVis();
        }
Exemplo n.º 2
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);
        }