public virtual void Load(RSFileReader R) { byte tag; while ((tag = R.ReadByte()) != 0) { switch (tag) { case 10: Id = R.ReadInt64(); break; case 11: R.AddReference(Graph, "GraphObject", R.ReadInt64(), 11, this); break; case 12: R.AddReference(Graph, "GraphObject", R.ReadInt64(), 12, this); break; case 20: Title = R.ReadString(); break; case 25: string key = R.ReadString(); string val = R.ReadString(); Attributes.Add(key, val); break; } } }
public virtual void Load(RSFileReader R) { byte tag; while ((tag = R.ReadByte()) != 0) { switch (tag) { case 10: Id = R.ReadInt64(); break; case 11: X = R.ReadFloat(); Y = R.ReadFloat(); Width = R.ReadFloat(); Height = R.ReadFloat(); break; case 12: Autosize = R.ReadBool(); break; case 13: Objects.Clear(); Objects.Load(R); break; case 14: R.AddReference(p_parent, "GraphObject", R.ReadInt64(), 14, this); break; default: throw new Exception("Unknown tag " + (int)tag + " in loading GVGraphObject at position " + R.Position); } } }