Ejemplo n.º 1
0
        /// <summary>
        ///     Creates and initializes a NoteModel from its Xml representation.
        /// </summary>
        /// <param name="note"></param>
        /// <returns></returns>
        public static NoteModel LoadNoteFromXml(XmlNode note)
        {
            var instance = new NoteModel(0, 0, string.Empty, Guid.NewGuid());

            instance.Deserialize(note as XmlElement, SaveContext.File);
            return(instance);
        }