示例#1
0
        /// <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);
        }
示例#2
0
 /// <summary>
 /// 判断是否可以显示在某处
 /// </summary>
 /// <param name="where"></param>
 /// <returns></returns>
 public bool CanShowIn(ShowInWhere where)
 {
     return((this.ShowInWhere & where) == where);
 }
示例#3
0
 /// <summary>
 /// 判断是否可以显示在某处
 /// </summary>
 /// <param name="where"></param>
 /// <returns></returns>
 public bool CanShowIn(ShowInWhere where)
 {
     return (this.ShowInWhere & where) == where;
 }