Example #1
0
 internal void RemoveButton(RadioButton button)
 {
     if (m_Buttons.Contains(button))
         m_Buttons.Remove(button);
     if (!m_AllowNoneClicked && GetClickedButton() == null && m_Buttons.Count > 0)
         m_Buttons[0].IsDown = true;
 }
Example #2
0
 internal void AddButton(RadioButton button)
 {
     if (!m_Buttons.Contains(button))
         m_Buttons.Add(button);
     if (!m_AllowNoneClicked && GetClickedButton() == null)
         button.IsDown = true;
 }
Example #3
0
        internal void ButtonClicked(RadioButton button)
        {
            button.IsDown = !button.IsDown;
            if (!m_AllowNoneClicked && GetClickedButton() == null)
                button.IsDown = true;

            if (!m_AllowMultipleClicked)
            {
                foreach (RadioButton b in m_Buttons)
                {
                    b.IsDown = (b == button);
                }
            }
        }