Example #1
0
        public void InitialiseStatsButton()
        {
            var btn = FindViewById <Button>(Resource.Id.weeksStatsButton);

            UpdateWeekStatsButtonVis();

            btn.Click += (sender, args) =>
            {
                var activity = new Intent(this, typeof(WeekStats));
                activity.PutExtra("week", SelectedWeek.ToString());
                StartActivity(activity);
            };
        }
        private void NextWeek()
        {
            SelectedWeek = SelectedWeek.AddDays(7);

            UpdateWeekRecord(null);
        }
        private void PreviousWeek()
        {
            SelectedWeek = SelectedWeek.AddDays(-7);

            UpdateWeekRecord(null);
        }