Changeset 4068 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/DocumentInformation.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/DocumentInformation.cs
r2768 r4068 1 1 using System; 2 using System.Collections.Generic;3 using System.Text;4 using System.Drawing;5 using System.ComponentModel;6 using System.Runtime.Serialization;7 using System.Xml.Serialization;8 using System.Diagnostics;9 using System.Xml.Schema;10 2 11 namespace Netron.Diagramming.Core 12 { 3 namespace Netron.Diagramming.Core { 4 /// <summary> 5 /// The meta-data (author, date, description) related to a diagram is collected in this class 6 /// </summary> 7 public partial class DocumentInformation : IVersion { 8 #region Fields 9 10 // ------------------------------------------------------------------ 13 11 /// <summary> 14 /// The meta-data (author, date, description) related to a diagram is collected in this class 12 /// Implementation of IVersion - the current version of 13 /// DocumentInformation. 15 14 /// </summary> 16 public partial class DocumentInformation : IVersion 17 { 18 #region Fields 15 // ------------------------------------------------------------------ 16 protected const double documentInformationVersion = 1.0; 19 17 20 // ------------------------------------------------------------------ 21 /// <summary> 22 /// Implementation of IVersion - the current version of 23 /// DocumentInformation. 24 /// </summary> 25 // ------------------------------------------------------------------ 26 protected const double documentInformationVersion = 1.0; 18 /// <summary> 19 /// the CreationDate field 20 /// </summary> 21 private string mCreationDate = DateTime.Now.ToString(); 22 /// <summary> 23 /// the field 24 /// </summary> 25 private string mAuthor = string.Empty; 26 /// <summary> 27 /// the Description field 28 /// </summary> 29 private string mDescription = string.Empty; 30 /// <summary> 31 /// the Title field 32 /// </summary> 33 private string mTitle = string.Empty; 34 #endregion 27 35 28 /// <summary> 29 /// the CreationDate field 30 /// </summary> 31 private string mCreationDate = DateTime.Now.ToString(); 32 /// <summary> 33 /// the field 34 /// </summary> 35 private string mAuthor = string.Empty; 36 /// <summary> 37 /// the Description field 38 /// </summary> 39 private string mDescription = string.Empty; 40 /// <summary> 41 /// the Title field 42 /// </summary> 43 private string mTitle = string.Empty; 44 #endregion 36 #region Properties 45 37 46 #region Properties 38 // ------------------------------------------------------------------ 39 /// <summary> 40 /// Gets the current version. 41 /// </summary> 42 // ------------------------------------------------------------------ 43 public virtual double Version { 44 get { 45 return documentInformationVersion; 46 } 47 } 47 48 48 // ------------------------------------------------------------------ 49 /// <summary> 50 /// Gets the current version. 51 /// </summary> 52 // ------------------------------------------------------------------ 53 public virtual double Version 54 { 55 get 56 { 57 return documentInformationVersion; 58 } 59 } 60 61 /// <summary> 62 /// Gets or sets the 63 /// </summary> 64 public string Author 65 { 66 get { return mAuthor; } 67 set { mAuthor = value; } 68 } 69 /// <summary> 70 /// Gets or sets the Description 71 /// </summary> 72 public string Description 73 { 74 get { return mDescription; } 75 set { mDescription = value; } 76 } 77 /// <summary> 78 /// Gets or sets the Title 79 /// </summary> 80 public string Title 81 { 82 get { return mTitle; } 83 set { mTitle = value; } 84 } 85 /// <summary> 86 /// Gets or sets the CreationDate 87 /// </summary> 88 public string CreationDate 89 { 90 get { return mCreationDate; } 91 set { mCreationDate = value; } 92 } 93 #endregion 49 /// <summary> 50 /// Gets or sets the 51 /// </summary> 52 public string Author { 53 get { return mAuthor; } 54 set { mAuthor = value; } 55 } 56 /// <summary> 57 /// Gets or sets the Description 58 /// </summary> 59 public string Description { 60 get { return mDescription; } 61 set { mDescription = value; } 62 } 63 /// <summary> 64 /// Gets or sets the Title 65 /// </summary> 66 public string Title { 67 get { return mTitle; } 68 set { mTitle = value; } 69 } 70 /// <summary> 71 /// Gets or sets the CreationDate 72 /// </summary> 73 public string CreationDate { 74 get { return mCreationDate; } 75 set { mCreationDate = value; } 76 } 77 #endregion 94 78 95 #region Constructor 96 ///<summary> 97 ///Default constructor 98 ///</summary> 99 public DocumentInformation() 100 { 101 102 } 103 #endregion 104 79 #region Constructor 80 ///<summary> 81 ///Default constructor 82 ///</summary> 83 public DocumentInformation() { 84 105 85 } 86 #endregion 87 88 } 106 89 }
Note: See TracChangeset
for help on using the changeset viewer.