예제 #1
0
 public static void Search(GLib lib, string text, int typeId, ArrayList ar)
 {
     text = text.ToLower();
     if (typeId == 0)
     {
         foreach (GType type in lib.Types)
         {
             Search(type, text, ar);
         }
     }
     else
     {
         GType type = lib.GetType(typeId);
         if (type != null)
         {
             Search(type, text, ar);
         }
     }
 }
예제 #2
0
        internal GType(Context context, BinaryReader br)
        {
            this.lib = context.Lib;
            id       = br.ReadInt32();
//			lib.UpdateGen(this);
            parentId = br.ReadInt32();
            priority = br.ReadInt32();
            attr     = br.ReadInt32();
            name     = br.ReadString();
            context.SetStyle(br.ReadString(), ref styleStr, ref style);
            geomType = (GeomType)br.ReadInt32();
            smin     = br.ReadInt32();
            smax     = br.ReadInt32();
            if (parentId != 0)
            {
                parent = lib.GetType(parentId);
            }
            this.ParentComposite.Add(this);
            lib.Register(this);
        }