public void Deserialize(ProjectFolderPropertyDocument s, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { s._name = info.GetString("Name"); s._creationTimeUtc = info.GetDateTime("CreationTimeUtc"); s._changeTimeUtc = info.GetDateTime("ChangeTimeUtc"); s.PropertyBag = (Main.Properties.PropertyBag)info.GetValue("Properties", s); }
/// <summary> /// Initializes a new instance of the <see cref="ProjectFolderPropertyDocument"/> class. /// </summary> /// <param name="from">Another instance to copy the name of the bag and the properties from.</param> public ProjectFolderPropertyDocument(ProjectFolderPropertyDocument from) { _creationTimeUtc = _changeTimeUtc = DateTime.UtcNow; CopyFrom(from); }