private static void ReadComponent(SaveReader sr) { String s = sr.ReadLine(); if (s == "") return; int l = Convert.ToInt32(s.Substring(0, s.Length)); if (l == 0) return; s = ReadBlock(sr, l + 2); //important //important if (s == "") return; ComponentData c = new ComponentData(s); s = sr.ReadLine(); //s = sr.ReadLine(); c.Load(); System.Threading.Thread.Sleep(1);//TODO mb remove. for decoration }
public static void SaveNode(ComponentData d) { datas.Add(d); }