Beispiel #1
0
        private void CopyFrom(GridPlaneCollection from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            Clear();

            foreach (GridPlane plane in from)
            {
                Add(plane.Clone());
            }
        }
Beispiel #2
0
            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++)
                {
                    var plane = (GridPlane)info.GetValue("e", s);
                    s.Add(plane);
                }
                info.CloseArray(count);

                return(s);
            }
Beispiel #3
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                GridPlaneCollection s = SDeserialize(o, info, parent);

                return(s);
            }
Beispiel #4
0
 public GridPlaneCollection(GridPlaneCollection from)
 {
     CopyFrom(from);
 }