public void Load(RSFileReader R) { byte tag; while ((tag = R.ReadByte()) != 0) { switch (tag) { case 10: Name = R.ReadString(); break; case 20: if (Parameters == null) { Parameters = new List <GVDeclarationDataEntry>(); } GVDeclarationDataEntry de = new GVDeclarationDataEntry(); de.Load(R); break; case 30: OutNaming = new GVDeclarationFlowOut(); OutNaming.Load(R); break; } } }
public GVDeclarationFlowOut(GVDeclarationFlowOut baseFlow, params string[] names) { NamingType = GVFlowOutNaming.Selection; if (baseFlow != null && baseFlow.NamingType == GVFlowOutNaming.Selection) { Names = new string[names.Length + baseFlow.Names.Length]; Array.Copy(baseFlow.Names, Names, baseFlow.Names.Length); Array.Copy(names, 0, Names, baseFlow.Names.Length, names.Length); } else { Names = names; } }