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


UCC Code Repository

Diff of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/EditMetadataDialog.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 90 by rvvs89, Tue Oct 12 21:18:41 2010 UTC revision 91 by rvvs89, Tue Oct 12 21:38:57 2010 UTC
# Line 10  namespace MetadataPlugin.Source Line 10  namespace MetadataPlugin.Source
10  {  {
11      public partial class EditMetadataDialog : Form      public partial class EditMetadataDialog : Form
12      {      {
13            private IMetadata data;
14          private static EditMetadataDialog instance;          private static EditMetadataDialog instance;
15    
16          public static EditMetadataDialog Instance          public static EditMetadataDialog Instance
# Line 32  namespace MetadataPlugin.Source Line 33  namespace MetadataPlugin.Source
33              get { return control; }              get { return control; }
34          }          }
35    
36            public ContextMenuStrip MapMarkerContextMenu
37            {
38                get { return mapMarkerContextMenu; }
39            }
40    
41          private void EditMetadataDialog_FormClosing(object sender, FormClosingEventArgs e)          private void EditMetadataDialog_FormClosing(object sender, FormClosingEventArgs e)
42          {          {
43              if (control != null)              if (control != null)
# Line 39  namespace MetadataPlugin.Source Line 45  namespace MetadataPlugin.Source
45                  control.Cancel();                  control.Cancel();
46              }              }
47          }          }
48    
49            public IMetadata MapMarkerReference
50            {
51                set { data = value; }
52            }
53    
54            private void confirmToolStripMenuItem_Click(object sender, EventArgs e)
55            {
56                MetadataRouteControlLayer.Instances[0].CurrentList.Remove(data);
57            }
58    
59            private void modifyToolStripMenuItem_Click(object sender, EventArgs e)
60            {
61                MetadataRouteControlLayer.Instances[0].CurrentList.Edit(data);
62            }
63      }      }
64  }  }

Legend:
Removed from v.90  
changed lines
  Added in v.91

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26