public GridStyle(GridStyle from) { CopyFrom(from); }
public void CopyFrom(GridStyle from) { if (object.ReferenceEquals(this, from)) return; this.MajorPen = from._majorPen == null ? null : (PenX)(from._majorPen.Clone()); this.MinorPen = from._minorPen == null ? null : (PenX)(from._minorPen.Clone()); this._showGrid = from._showGrid; this._showMinor = from._showMinor; this._showZeroOnly = from._showZeroOnly; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { GridStyle s = SDeserialize(o, info, parent); return(s); }
public bool InitializeDocument(params object[] args) { if (args.Length == 0 || (args[0]!=null && !(args[0] is GridStyle))) return false; bool isVirgin = null == _doc; _doc = (GridStyle)args[0]; _tempdoc = _doc; if(_useDocument == UseDocument.Copy && null!=_doc) { _tempdoc = (GridStyle)_doc.Clone(); } if (null == _doc) { _doc = _tempdoc = new GridStyle(); _tempdoc.ShowGrid = false; _useDocument = UseDocument.Directly; } Initialize(true); return true; }
public XYGridStyleController(GridStyle doc) { if (!InitializeDocument(doc)) throw new ApplicationException("Programming error"); }
public void CopyFrom(GridStyle from) { this.MajorPen = from._majorPen == null ? null : (PenX)(from._majorPen.Clone()); this.MinorPen = from._minorPen == null ? null : (PenX)(from._minorPen.Clone()); this._showGrid = from._showGrid; this._showMinor = from._showMinor; this._showZeroOnly = from._showZeroOnly; }