/[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 87 - (show annotations) (download)
Mon Oct 11 21:19:18 2010 UTC (11 years, 1 month ago) by rvvs89
File size: 1682 byte(s)
Serializing a MetadataList to route extension data is now working.
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 data = "Enter your data here";
22 }
23
24 public MetadataType Type
25 {
26 get { return MetadataType.TEXT; }
27 }
28
29 public MetadataLocation Location
30 {
31 get { return location; }
32 set { location = value; }
33 }
34
35
36 public string Name
37 {
38 get { return name; }
39 set { name = value; }
40 }
41
42 public IMetadataEditor Editor
43 {
44 get
45 {
46 if (editor == null || editor.IsDisposed)
47 {
48 editor = new MetadataTextEditor(this);
49 }
50 return editor;
51 }
52 }
53
54 public string Data
55 {
56 get { return data; }
57 set { data = value; }
58 }
59
60 public DateTime Point
61 {
62 get { return point.Value; }
63 set { point = value; }
64 }
65
66 public ValueRange<DateTime> Range
67 {
68 get { return range; }
69 set { range = value; }
70 }
71 }
72 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26