Esempio n. 1
0
        public BindableBool Set(T lookup, bool value)
        {
            BindableBool bindable = GetBindable <bool>(lookup) as BindableBool;

            if (bindable == null)
            {
                bindable = new BindableBool(value);
                addBindable(lookup, bindable);
            }
            else
            {
                bindable.Value = value;
            }

            return(bindable);
        }
Esempio n. 2
0
        public BindableBool Set(T lookup, bool value)
        {
            BindableBool bindable = GetOriginalBindable <bool>(lookup) as BindableBool;

            if (bindable == null)
            {
                bindable = new BindableBool(value);
                AddBindable(lookup, bindable);
            }
            else
            {
                bindable.Value = value;
            }

            bindable.Default = value;

            return(bindable);
        }