Example #1
0
 void CopyFrom(GridPlane from)
 {
     this._planeID        = from._planeID;
     this.GridStyleFirst  = from._grid1 == null ? null : (GridStyle)from._grid1.Clone();
     this.GridStyleSecond = from._grid2 == null ? null : (GridStyle)from._grid2.Clone();
     this.Background      = from._background == null ? null : (BrushX)from._background.Clone();
 }
Example #2
0
            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                GridPlane s = (GridPlane)obj;

                info.AddValue("ID", s._planeID);
                info.AddValue("Grid1", s._grid1);
                info.AddValue("Grid2", s._grid2);
                info.AddValue("Background", s._background);
            }
Example #3
0
            protected virtual GridPlane SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                CSPlaneID 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      = (BrushX)info.GetValue("Background", s);

                return(s);
            }
Example #4
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 == null ? null : from._background.Clone();
        }
            protected virtual GridPlaneCollection SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                GridPlaneCollection s = (o == null ? new GridPlaneCollection() : (GridPlaneCollection)o);

                int count = info.OpenArray("GridPlanes");

                for (int i = 0; i < count; i++)
                {
                    GridPlane plane = (GridPlane)info.GetValue("e", s);
                    s.Add(plane);
                }
                info.CloseArray(count);

                return(s);
            }
Example #6
0
 public GridIndexer(GridPlane parent)
 {
     _parent = parent;
 }
Example #7
0
 public GridPlane(GridPlane from)
 {
     _cachedIndexer = new GridIndexer(this);
     CopyFrom(from);
 }
Example #8
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                GridPlane s = SDeserialize(o, info, parent);

                return(s);
            }