/[cits3200i]/trunk/UWAPlugins/MetadataPlugin/Source/MetadataTextEditor.cs


UCC Code Repository

Contents of /trunk/UWAPlugins/MetadataPlugin/Source/MetadataTextEditor.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 100 - (show annotations) (download)
Wed Oct 13 01:51:32 2010 UTC (11 years, 1 month ago) by rvvs89
File size: 1013 byte(s)
Merging metadata-branch-rvvs89.
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 control.Data = parent.Data;
18 }
19
20 public Control EditorControl
21 {
22 get { return control; }
23 }
24
25 public void Commit()
26 {
27 if (!IsDisposed)
28 {
29 parent.Data = control.Data;
30 }
31 }
32
33 public void Dispose()
34 {
35 control.Dispose();
36 }
37
38 public bool IsDisposed
39 {
40 get { return control.IsDisposed; }
41 }
42
43 public IMetadata Data
44 {
45 get { return parent; }
46 }
47 }
48 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26