Exemplo n.º 1
0
        private void UncheckOthersFromGroup()
        {
            //If GroupName is set, the group is all RadioButtons with the same GroupName, else it is other RadioButtons with the same logical parent
            var group = GroupName.IsNullOrEmpty() ?
                        GetOtherHierarchicalGroupMembers() :
                        GetOtherNamedGroupMembers();

            foreach (var rb in group)
            {
                if (this.Log().IsEnabled(Microsoft.Extensions.Logging.LogLevel.Debug))
                {
                    this.Log().DebugFormat("Unchecking radio [{0}/{1}] in group [{2}]", rb.ToString(), rb.Name, GroupName);
                }

                rb.IsChecked = false;
            }
        }
Exemplo n.º 2
0
 private void SetCurrentGroup()
 {
     CurrentGroup = !GroupName.IsNullOrEmpty() ? GetGroup(GroupName) : GetDefaultGroup();
 }