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


UCC Code Repository

Contents of /trunk/UWAPlugins/MetadataPlugin/Source/MetadataFileEditor.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 MetadataFileEditor : IMetadataEditor
9 {
10 private MetadataFile parent;
11 private EditFile control;
12
13 public MetadataFileEditor(MetadataFile parent)
14 {
15 this.parent = parent;
16 control = new EditFile();
17 control.Data = parent.Data;
18 }
19
20 public IMetadata Data
21 {
22 get { return parent; }
23 }
24
25 public Control EditorControl
26 {
27 get { return control; }
28 }
29
30 public void Commit()
31 {
32 if (!IsDisposed)
33 {
34 parent.Data = control.Data;
35 }
36 }
37
38 public bool IsDisposed
39 {
40 get { return control.IsDisposed; }
41 }
42
43 public void Dispose()
44 {
45 control.Dispose();
46 }
47 }
48 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26