internal static int GetRows(RadioButtons radioButtons) { if (radioButtons != null) { return(radioButtons.GetRows()); } return(-1); }