Example #1
0
 /// <summary>
 /// Sets the flag.
 /// </summary>
 /// <param name="flag">The flag.</param>
 /// <param name="on">if set to <c>true</c> [on].</param>
 public void SetFlag(DatItemFlag flag, bool on)
 {
     if (on)
         Flags |= (uint)flag;
     else
         Flags &= ~(uint)flag;
 }
Example #2
0
 public void SetFlag(DatItemFlag flag, bool on)
 {
     if (DatItem != null) {
         DatItem.SetFlag(flag, on);
     }
 }
Example #3
0
 /// <summary>
 /// Gets the flag.
 /// </summary>
 /// <param name="flag">The flag.</param>
 /// <returns></returns>
 public bool GetFlag(DatItemFlag flag)
 {
     return (Flags & (int)flag) == (int)flag;
 }
Example #4
0
 public bool GetFlag(DatItemFlag flag)
 {
     if (DatItem != null) {
         return DatItem.GetFlag(flag);
     }
     return false;
 }