Пример #1
0
        public void SetTypeEditor(string parentTypeName, string propertyName, Type toEdit)
        {
            TypeBind tb = new TypeBind();

            tb.a1 = parentTypeName; tb.a2 = propertyName; tb.t1 = toEdit;
            mTypeBind.Add(tb);
        }
Пример #2
0
 public virtual bool MatchBind(TypeBind tb, Dictionary<string,object> binddictionary)
 {
     return (tb.Type.IsAssignableFrom(this.GetType()));
 }
Пример #3
0
 public virtual bool Match(TypeBind tb)
 {
     return (tb.Type.IsAssignableFrom(this.GetType()));
 }
Пример #4
0
 public bool MatchBind(TypeBind tb, Dictionary<string,object> binddictionary)
 {
     return false;
 }
Пример #5
0
 public bool Match(TypeBind tb)
 {
     return false;
 }
Пример #6
0
 public static bool MatchBind(TypeBind tb, int index, IPuzzlePiece ipp, Dictionary<string,object> tobind)
 {
     if(Match(tb,index,ipp)) {
         return ipp.MatchBind(tb,tobind);
     }
     return false;
 }
Пример #7
0
 public static bool Match(TypeBind tb, int index, IPuzzlePiece ipp)
 {
     return (ipp != null && (tb.index == -0x01 || tb.index == index) && ipp.Match(tb));
 }
Пример #8
0
 public static bool GetOptional(TypeBind tb)
 {
     return tb != null && tb.Optional;
 }
Пример #9
0
 public override bool MatchBind(TypeBind tb, Dictionary<string, object> binddictionary)
 {
     if (this.Piece != null) {
         return this.Piece.MatchBind (tb,binddictionary);
     } else {
         return false;
     }
 }
Пример #10
0
 public override bool Match(TypeBind tb)
 {
     if (this.Piece != null) {
         return this.Piece.Match (tb);
     } else {
         return false;
     }
 }