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


UCC Code Repository

Diff of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/AddMetadataControl.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 50  namespace MetadataPlugin.Source Line 50  namespace MetadataPlugin.Source
50              {              {
51                  type = MetadataType.TEXT;                  type = MetadataType.TEXT;
52              } else {              } else {
53                  Hide();                  AddMetadataDialog.Instance.Close();
                 /* FIXME: prevent this case from occuring by disabling the button */  
54                  return;                  return;
55              }              }
56              IMetadata data = type.CreateInstance(MetadataLocation);              IMetadata data = type.CreateInstance(MetadataLocation);
# Line 68  namespace MetadataPlugin.Source Line 67  namespace MetadataPlugin.Source
67              MetadataRouteControlLayer.Instances[0].CurrentList.Add(data);              MetadataRouteControlLayer.Instances[0].CurrentList.Add(data);
68              EditMetadataDialog.Instance.Control.Editor = data.Editor;              EditMetadataDialog.Instance.Control.Editor = data.Editor;
69              EditMetadataDialog.Instance.Control.InitialEdit = true;              EditMetadataDialog.Instance.Control.InitialEdit = true;
70              EditMetadataDialog.Instance.Control.UpdateSpecific();              EditMetadataDialog.Instance.Control.UpdateContent();
71              AddMetadataDialog.Instance.Close();              AddMetadataDialog.Instance.Close();
72              EditMetadataDialog.Instance.ShowDialog();              EditMetadataDialog.Instance.ShowDialog();
73          }          }

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

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26