Esempio n. 1
0
 /// <summary>
 /// Sets the toggle state of the checkbox widget
 /// </summary>
 /// <param name="widget">Checkbox widget</param>
 /// <param name="state">the state to set to</param>
 public static void SetState(this CheckBoxWidget widget, Boolean state)
 {
     if (widget != null)
     {
         widget.SetToggleState(state);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Returns the toggle state of the checkbox widget
        /// </summary>
        /// <param name="widget">checkboxwidget object</param>
        /// <returns>the current state, true if checked</returns>
        public static bool GetState(this CheckBoxWidget widget)
        {
            if (widget != null)
            {
                return(widget.GetToggleState());
            }

            return(false);
        }