예제 #1
0
            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);
            }
예제 #2
0
        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;
        }
예제 #3
0
 public GridPlane(GridPlane from)
 {
     _cachedIndexer = new GridIndexer(this);
     CopyFrom(from);
 }
예제 #4
0
 public GridIndexer(GridPlane parent)
 {
     _parent = parent;
 }
예제 #5
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                GridPlane s = SDeserialize(o, info, parent);

                return(s);
            }