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 |
|
---|
11 | namespace Netron.Diagramming.Core
|
---|
12 | {
|
---|
13 | /// <summary>
|
---|
14 | /// The meta-data (author, date, description) related to a diagram is collected in this class
|
---|
15 | /// </summary>
|
---|
16 | public partial class DocumentInformation : IVersion
|
---|
17 | {
|
---|
18 | #region Fields
|
---|
19 |
|
---|
20 | // ------------------------------------------------------------------
|
---|
21 | /// <summary>
|
---|
22 | /// Implementation of IVersion - the current version of
|
---|
23 | /// DocumentInformation.
|
---|
24 | /// </summary>
|
---|
25 | // ------------------------------------------------------------------
|
---|
26 | protected const double documentInformationVersion = 1.0;
|
---|
27 |
|
---|
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
|
---|
45 |
|
---|
46 | #region Properties
|
---|
47 |
|
---|
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
|
---|
94 |
|
---|
95 | #region Constructor
|
---|
96 | ///<summary>
|
---|
97 | ///Default constructor
|
---|
98 | ///</summary>
|
---|
99 | public DocumentInformation()
|
---|
100 | {
|
---|
101 |
|
---|
102 | }
|
---|
103 | #endregion
|
---|
104 |
|
---|
105 | }
|
---|
106 | }
|
---|