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(); }
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(); }
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; }