Example #1
0
        private void GameStatisticsActivity_CheckedChanged(object sender, EventArgs e)
        {
            ItemIdHolderRadioGroup radioGroup     = sender as ItemIdHolderRadioGroup;
            ItemHolderRadioButton  selectedButton = radioGroup.GetSelected();

            myViewModel.CurrentStatistic.SetStatistic(myCurrentStatToGet, selectedButton.ItemId);
            myCurrentStatToGet = myViewModel.CurrentStatistic.GetNextStatistic();
            SetStatisticLayout();
            radioGroup.DeselectAll();
        }
Example #2
0
        private void RadioButtonGroup_CheckedChange(object sender, RadioGroup.CheckedChangeEventArgs e)
        {
            ItemIdHolderRadioGroup radioGroup = sender as ItemIdHolderRadioGroup;
            ItemHolderRadioButton  button     = radioGroup.FindViewById <ItemHolderRadioButton>(e.CheckedId);

            //ItemHolderRadioButton selectedButton = radioGroup.GetSelected();
            myViewModel.CurrentStatistic.SetStatistic(myCurrentStatToGet, button.ItemId);
            myCurrentStatToGet = myViewModel.CurrentStatistic.GetNextStatistic();
            SetStatisticLayout();
            radioGroup.DeselectAll();
        }
Example #3
0
        private void StatsInput_OkButton_Clicked(object sender, EventArgs e)
        {
            ItemIdHolderRadioGroup statsGroup     = statInputSwitcher.CurrentView.FindViewById <ItemIdHolderRadioGroup>(Resource.Id.radioGroup1);
            ItemHolderRadioButton  selectedButton = statsGroup.GetSelected();

            myViewModel.CurrentStatistic.SetStatistic(myCurrentStatToGet, selectedButton.ItemId);
            myCurrentStatToGet = myViewModel.CurrentStatistic.GetNextStatistic();
            statsGroup.DeselectAll();
            SetStatisticLayout();
            okButton.Enabled = false;
        }
Example #4
0
        private void AttackDefenceGroup_CheckedChanged(object sender, EventArgs e)
        {
            var group = sender as ItemIdHolderRadioGroup;
            ItemHolderRadioButton selectedButton = group.GetSelected();

            if (selectedButton.Text.Equals("Verdediging"))
            {
                myViewModel.CurrentStatisticViewModel.CurrentZoneToShowFilter = EZoneFunction.Defence;
            }
            else
            {
                myViewModel.CurrentStatisticViewModel.CurrentZoneToShowFilter = EZoneFunction.Attack;
            }
            LoadStats();
        }
        private void ViewSwitchGroup_CheckedChanged(object sender, EventArgs e)
        {
            var group = sender as ItemIdHolderRadioGroup;
            ItemHolderRadioButton selectedButton = group.GetSelected();

            if (selectedButton.Text.Equals("Aanvallen"))
            {
                viewFlipper.DisplayedChild = viewFlipper.IndexOfChild(viewFlipper.FindViewById(Resource.Id.attacksList));
                SetAttacksView();
            }
            else
            {
                viewFlipper.DisplayedChild = viewFlipper.IndexOfChild(viewFlipper.FindViewById(Resource.Id.overView));
                LoadStats();
            }
        }