using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using System.Diagnostics;
using System.Xml.Schema;
namespace Netron.Diagramming.Core
{
///
/// The meta-data (author, date, description) related to a diagram is collected in this class
///
public partial class DocumentInformation : IVersion
{
#region Fields
// ------------------------------------------------------------------
///
/// Implementation of IVersion - the current version of
/// DocumentInformation.
///
// ------------------------------------------------------------------
protected const double documentInformationVersion = 1.0;
///
/// the CreationDate field
///
private string mCreationDate = DateTime.Now.ToString();
///
/// the field
///
private string mAuthor = string.Empty;
///
/// the Description field
///
private string mDescription = string.Empty;
///
/// the Title field
///
private string mTitle = string.Empty;
#endregion
#region Properties
// ------------------------------------------------------------------
///
/// Gets the current version.
///
// ------------------------------------------------------------------
public virtual double Version
{
get
{
return documentInformationVersion;
}
}
///
/// Gets or sets the
///
public string Author
{
get { return mAuthor; }
set { mAuthor = value; }
}
///
/// Gets or sets the Description
///
public string Description
{
get { return mDescription; }
set { mDescription = value; }
}
///
/// Gets or sets the Title
///
public string Title
{
get { return mTitle; }
set { mTitle = value; }
}
///
/// Gets or sets the CreationDate
///
public string CreationDate
{
get { return mCreationDate; }
set { mCreationDate = value; }
}
#endregion
#region Constructor
///
///Default constructor
///
public DocumentInformation()
{
}
#endregion
}
}