Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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;
        }