public override bool Read(GH_IReader reader) { Container = null; if (!base.Read(reader)) { return(false); } RemapToTarget = reader.GetBoolean("Remap"); if (RemapToTarget) { Message = "Remap"; } else { Message = string.Empty; } GH_IReader gH_IReader = reader.FindChunk("LocalGraph"); if (gH_IReader != null) { GH_GraphContainer val = new GH_GraphContainer(null); if (!val.Read(gH_IReader)) { return(false); } Container = val; } return(true); }
public void LoadState(string state) { Container = null; if (state.Equals("null", StringComparison.OrdinalIgnoreCase)) { ExpireSolution(false); return; } GH_LooseChunk gH_LooseChunk = new GH_LooseChunk("graph"); gH_LooseChunk.Deserialize_Xml(state); GH_GraphContainer val = new GH_GraphContainer(null); if (val.Read(gH_LooseChunk)) { Container = val; ExpireSolution(false); } }