/[cits3200i]/branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataText.cs


UCC Code Repository

Contents of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataText.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 88 - (show annotations) (download)
Tue Oct 12 04:54:08 2010 UTC (11 years, 1 month ago) by rvvs89
File size: 1724 byte(s)
Syncing.
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using ZoneFiveSoftware.Common.Data;
5
6 namespace MetadataPlugin.Source
7 {
8 [Serializable]
9 class MetadataText : IMetadata
10 {
11 private MetadataLocation location;
12 private MetadataTextEditor editor;
13 private string name;
14 private string data;
15 private Nullable<DateTime> point;
16 private ValueRange<DateTime> range;
17
18 public MetadataText(MetadataLocation location)
19 {
20 this.location = location;
21 name = "Untitled text data";
22 data = "Enter your data here";
23 }
24
25 public MetadataType Type
26 {
27 get { return MetadataType.TEXT; }
28 }
29
30 public MetadataLocation Location
31 {
32 get { return location; }
33 set { location = value; }
34 }
35
36
37 public string Name
38 {
39 get { return name; }
40 set { name = value; }
41 }
42
43 public IMetadataEditor Editor
44 {
45 get
46 {
47 if (editor == null || editor.IsDisposed)
48 {
49 editor = new MetadataTextEditor(this);
50 }
51 return editor;
52 }
53 }
54
55 public string Data
56 {
57 get { return data; }
58 set { data = value; }
59 }
60
61 public DateTime Point
62 {
63 get { return point.Value; }
64 set { point = value; }
65 }
66
67 public ValueRange<DateTime> Range
68 {
69 get { return range; }
70 set { range = value; }
71 }
72 }
73 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26