Permalink
Browse files

2009-09-09 Ivan N. Zlatev <contact@i-nz.net>

	* Remove unneeded Toolbox code. We now support proper point-resize-click 
	  control creation.

svn path=/trunk/mwf-designer/; revision=141640
  • Loading branch information...
1 parent 6d2502a commit cfa620f02c830df9834db17b63a24a00ef383119 @ivanz ivanz committed Sep 9, 2009
Showing with 6 additions and 12 deletions.
  1. +5 −0 ChangeLog.txt
  2. +1 −1 src/Program.cs
  3. +0 −11 src/UI/MainView.cs
View
5 ChangeLog.txt
@@ -1,5 +1,10 @@
2009-09-09 Ivan N. Zlatev <contact@i-nz.net>
+ * Remove unneeded Toolbox code. We now support proper point-resize-click
+ control creation.
+
+2009-09-09 Ivan N. Zlatev <contact@i-nz.net>
+
* Update Visual Studio project files.
2009-09-09 Ivan N. Zlatev <contact@i-nz.net>
View
2 src/Program.cs
@@ -30,7 +30,7 @@ static void Main()
private static void OnException (Exception e)
{
- MessageBox.Show ("A fatal error occured. Please file a bug report with the following details (Ctrl-C to copy to clipboard):" +
+ MessageBox.Show ("A fatal error occurred. Please file a bug report with the following details (Ctrl-C to copy to clipboard):" +
System.Environment.NewLine + System.Environment.NewLine +
e.ToString (), "Fatal Error");
}
View
11 src/UI/MainView.cs
@@ -56,7 +56,6 @@ public partial class MainView : Form
public MainView ()
{
InitializeComponent ();
- toolbox.ToolPicked += OnToolbox_ToolPicked;
LoadWorkspace ();
}
@@ -78,16 +77,6 @@ private void openToolStripMenuItem_Click (object sender, EventArgs e)
}
}
- private void OnToolbox_ToolPicked (object sender, EventArgs args)
- {
- if (_workspace != null && _workspace.ActiveDocument != null) {
- IDesignerHost host = _workspace.ActiveDocument.DesignSurface.GetService (typeof (IDesignerHost)) as IDesignerHost;
- IToolboxService tb = _workspace.ActiveDocument.DesignSurface.GetService (typeof (IToolboxService)) as IToolboxService;
- if (host != null && tb != null)
- ((IToolboxUser)(DocumentDesigner)host.GetDesigner (host.RootComponent)).ToolPicked (tb.GetSelectedToolboxItem ());
- }
- }
-
private void LoadWorkspace ()
{
_workspace = new Workspace ();

0 comments on commit cfa620f

Please sign in to comment.