protected virtual GridPlane SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { var id = (CSPlaneID)info.GetValue("ID", null); GridPlane s = (o == null ? new GridPlane(id) : (GridPlane)o); s.GridStyleFirst = (GridStyle)info.GetValue("Grid1", s); s.GridStyleSecond = (GridStyle)info.GetValue("Grid2", s); s.Background = (IMaterial)info.GetValue("Background", s); return(s); }
private void CopyFrom(GridPlane from) { if (object.ReferenceEquals(this, from)) { return; } _planeID = from._planeID; GridStyleFirst = from._grid1 == null ? null : (GridStyle)from._grid1.Clone(); GridStyleSecond = from._grid2 == null ? null : (GridStyle)from._grid2.Clone(); Background = from._background; }
public GridPlane(GridPlane from) { _cachedIndexer = new GridIndexer(this); CopyFrom(from); }
public GridIndexer(GridPlane parent) { _parent = parent; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { GridPlane s = SDeserialize(o, info, parent); return(s); }