Пример #1
0
 public static NStructManager GetInstance()
 {
     if (instance == null)
     {
         instance = new NStructManager();
     }
     return(instance);
 }
Пример #2
0
        public bool Load(Stream s, bool bin = false)
        {
            bool ans = false;

            if (s != null)
            {
                ans = NStructManager.GetInstance().Read(s, bin) &&
                      Read(s, bin);
            }
            return(ans);
        }
Пример #3
0
 public bool Init()
 {
     if (partentName != null && partentName.Length != 0)
     {
         NStruct p = NStructManager.GetInstance().Find(partentName);
         if (p != null)
         {
             partent = p;
         }
     }
     return(true);
 }
Пример #4
0
 public void SetPartentName(String name)
 {
     partentName = name;
     if (partent != null && partent.Name.CompareTo(name) == 0)
     {
         return;
     }
     else
     {
         NStruct p = NStructManager.GetInstance().Find(partentName);
         if (p != null)
         {
             partent = p;
         }
     }
 }