示例#1
0
 public PropertyField(PropertyType type, Control[] controls, ShouldShow shouldShow, PopulateFull populate, Save save)
 {
     this.propertyType = type;
     this.controls     = controls;
     this.shouldShow   = shouldShow;
     this.populate     = populate;
     this.save         = save;
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Text != null ? Text.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ShouldShow.GetHashCode();
         return(hashCode);
     }
 }
示例#3
0
 public PropertyField(PropertyType type, Control[] controls, ShouldShow shouldShow, Populate populate, Save save)
     : this(type, controls, shouldShow, (ctx, opts) => populate(ctx.BlogPost), save)
 {
 }
示例#4
0
 public bool Equals(ReportItem other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(string.Equals(Text, other.Text) && string.Equals(Name, other.Name) && ShouldShow.Equals(other.ShouldShow));
 }
 public PropertyField(PropertyType type, Control[] controls, ShouldShow shouldShow, PopulateFull populate, Save save)
 {
     this.propertyType = type;
     this.controls = controls;
     this.shouldShow = shouldShow;
     this.populate = populate;
     this.save = save;
 }
 public PropertyField(PropertyType type, Control[] controls, ShouldShow shouldShow, Populate populate, Save save)
     : this(type, controls, shouldShow, (ctx, opts) => populate(ctx.BlogPost), save)
 {
 }