/// <summary> /// 设置该属性可显示的范围 /// </summary> /// <param name="meta"></param> /// <param name="value"></param> /// <returns></returns> public static WPFEntityPropertyViewMeta ShowIn(this WPFEntityPropertyViewMeta meta, ShowInWhere value) { if (value == ShowInWhere.Hide) { meta.ShowInWhere = ShowInWhere.Hide; } else { meta.ShowInWhere |= value; } return(meta); }
/// <summary> /// 判断是否可以显示在某处 /// </summary> /// <param name="where"></param> /// <returns></returns> public bool CanShowIn(ShowInWhere where) { return((this.ShowInWhere & where) == where); }
/// <summary> /// 判断是否可以显示在某处 /// </summary> /// <param name="where"></param> /// <returns></returns> public bool CanShowIn(ShowInWhere where) { return (this.ShowInWhere & where) == where; }