Permalink
Browse files

2008-07-18 Ivan N. Zlatev <contact@i-nz.net>

	* UI/PropertyGrid.cs, UI/MainView.cs: Clear the propertygrid.


svn path=/trunk/mwf-designer/; revision=108279
  • Loading branch information...
ivanz committed Jul 18, 2008
1 parent 0bdf5c0 commit 4eadd87b63838081b5e978ac3f34a5fe9708c9a9
Showing with 12 additions and 2 deletions.
  1. +4 −0 ChangeLog
  2. +2 −2 mwf-designer.vpj
  3. +1 −0 src/UI/MainView.cs
  4. +5 −0 src/UI/PropertyGrid.cs
View
@@ -1,3 +1,7 @@
+2008-07-18 Ivan N. Zlatev <contact@i-nz.net>
+
+ * UI/PropertyGrid.cs, UI/MainView.cs: Clear the propertygrid.
+
2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
* UI/PropertyGrid.cs: Handle removing of the root component.
View
@@ -25,8 +25,8 @@
SaveOption="SaveNone"
RunFromDir="%rw"
CaptureOutputWith="ProcessBuffer"
- BuildFirst="1"
- ClearProcessBuffer="1">
+ ClearProcessBuffer="1"
+ BuildFirst="1">
<Exec CmdLine="make mono-design-run"/>
</Target>
<Target
View
@@ -151,6 +151,7 @@ private void CloseDocument (Document doc)
doc.Modified -= OnDocumentModified;
surfaceTabs.TabPages.Remove (surfaceTabs.SelectedTab);
_workspace.CloseDocument (doc);
+ propertyGrid.Clear ();
}
private void newToolStripMenuItem_Click (object sender, EventArgs e)
View
@@ -65,6 +65,11 @@ private void SetPrimarySelection (string componentName)
selectionService.SetSelectedComponents (new IComponent[] { selectedComponent });
}
+ public void Clear ()
+ {
+ Update (null);
+ }
+
public void Update (IServiceProvider serviceProvider)
{
if (serviceProvider == null) {

0 comments on commit 4eadd87

Please sign in to comment.