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


UCC Code Repository

Contents of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataTextEditor.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: 817 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 System.Windows.Forms;
5
6 namespace MetadataPlugin.Source
7 {
8 class MetadataTextEditor : IMetadataEditor
9 {
10 private EditText control;
11 private MetadataText parent;
12
13 public MetadataTextEditor(MetadataText parent)
14 {
15 this.parent = parent;
16 control = new EditText();
17 }
18
19 public Control EditorControl
20 {
21 get { return control; }
22 }
23
24 public void Commit()
25 {
26 parent.Data = control.Data;
27 }
28
29 public void Dispose()
30 {
31 control.Dispose();
32 }
33
34 public bool IsDisposed
35 {
36 get { return control.IsDisposed; }
37 }
38 }
39 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26