Example #1
0
 public bool?GetValueEx(BxUIConfig cfg)
 {
     cfg.Init();
     if ((cfg._validFlag & _flagMask) == 0)
     {
         return(null);
     }
     return((cfg._flag & _flagMask) != 0);
 }
Example #2
0
 static protected bool?S_GetFlagValue(BxUIConfig cfg, UInt32 flagMask)
 {
     cfg.Init();
     if ((cfg._validFlag & flagMask) == 0)
     {
         return(null);
     }
     return((cfg._flag & flagMask) != 0);
 }
Example #3
0
 public override object GetValue(BxUIConfig cfg)
 {
     cfg.Init();
     if ((cfg._validFlag & _flagMask) == 0)
     {
         return(null);
     }
     return((cfg._flag & _flagMask) != 0);
 }
Example #4
0
 static protected void S_SetFlagValue(BxUIConfig cfg, UInt32 flagMask, bool?val)
 {
     if (val.HasValue)
     {
         cfg._validFlag |= flagMask;
         if (val.Value)
         {
             cfg._flag |= flagMask;
         }
         else
         {
             cfg._flag &= ~flagMask;
         }
     }
     else
     {
         cfg._validFlag &= ~flagMask;
     }
 }
Example #5
0
 public void SetValueEx(BxUIConfig cfg, bool?val)
 {
     cfg.Init();
     if (val.HasValue)
     {
         cfg._validFlag |= _flagMask;
         if (val.Value)
         {
             cfg._flag |= _flagMask;
         }
         else
         {
             cfg._flag &= ~_flagMask;
         }
     }
     else
     {
         cfg._validFlag &= ~_flagMask;
     }
 }
Example #6
0
 public override void SetValue(BxUIConfig cfg, object val)
 {
     cfg.Init();
     if (val == null)
     {
         cfg._validFlag &= ~_flagMask;
     }
     else
     {
         if (!(val is bool))
         {
             throw new Exception(string.Format("item %s is only support bool type.\n", key));
         }
         if ((bool)val)
         {
             cfg._flag |= _flagMask;
         }
         else
         {
             cfg._flag &= ~_flagMask;
         }
         cfg._validFlag |= _flagMask;
     }
 }
Example #7
0
 static protected void S_Set_Name(BxUIConfig cfg, string val)
 {
     cfg._name = val;
 }
Example #8
0
        //static readonly public _Item<IBLUIConfigMultiColumn> s_itemMultiColumn = new _Item<IBLUIConfigMultiColumn>("multiColumn", x => x._multiColumn, (x, s) => x._multiColumn = s);
        //static readonly public _Item<BLRatio> s_itemRatio = new _Item<BLRatio>("ratio", x => x._ratio, (x, s) => x._ratio = s);

        static protected string S_Get_Name(BxUIConfig cfg)
        {
            return(cfg._name);
        }
Example #9
0
 public void SetValueEx(BxUIConfig cfg, T val)
 {
     dlgt_SetValue(cfg, val);
 }
Example #10
0
 public T GetValueEx(BxUIConfig cfg)
 {
     return(dlgt_GetValue(cfg));
 }
Example #11
0
 public override bool HasValue(BxUIConfig cfg)
 {
     return(dlgt_GetValue(cfg) != null);
 }
Example #12
0
 public override void SetValue(BxUIConfig cfg, object val)
 {
     dlgt_SetValue(cfg, (T)val);
 }
Example #13
0
 public T GetValueEx(BxUIConfig cfg)
 {
     cfg.Init(); return(dlgt_GetValue(cfg));
 }
Example #14
0
 public abstract void SetValue(BxUIConfig cfg, object val);
Example #15
0
 public override bool HasValue(BxUIConfig cfg)
 {
     cfg.Init();
     return((cfg._validFlag & _flagMask) != 0);
 }
Example #16
0
 public void SetValueEx(BxUIConfig cfg, T val)
 {
     cfg.Init(); dlgt_SetValue(cfg, val);
 }
Example #17
0
 public override object GetValue(BxUIConfig cfg)
 {
     return(dlgt_GetValue(cfg));
 }
Example #18
0
 public abstract object GetValue(BxUIConfig cfg);
Example #19
0
 public abstract bool HasValue(BxUIConfig cfg);