/// <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; }
public void SetFlag(DatItemFlag flag, bool on) { if (DatItem != null) { DatItem.SetFlag(flag, on); } }
/// <summary> /// Gets the flag. /// </summary> /// <param name="flag">The flag.</param> /// <returns></returns> public bool GetFlag(DatItemFlag flag) { return (Flags & (int)flag) == (int)flag; }
public bool GetFlag(DatItemFlag flag) { if (DatItem != null) { return DatItem.GetFlag(flag); } return false; }