/[RomCheater]/trunk/RomCheater/Main.cs
ViewVC logotype

Diff of /trunk/RomCheater/Main.cs

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

--- trunk/RomCheater/Main.cs	2012/06/05 15:17:41	314
+++ trunk/RomCheater/Main.cs	2012/06/05 15:24:43	315
@@ -81,26 +81,25 @@
         void AddDockToWindowList(object sender, EventArgs e)
         {
             DockContent dc;
-            ObjectBinder.Bind(sender, out dc);
+            TypeBinder.Bind(sender, out dc);
             ToolStripMenuItem tsmi = new ToolStripMenuItem(dc.Text);
             tsmi.Name = dc.Name;
             tsmi.Tag = dc;
-            tsmi.Click += new EventHandler(tsmi_Click);
+            tsmi.Click += new EventHandler(tsmi_Click);            
             mnuWindows.DropDownItems.Add(tsmi);
         }
-
         void tsmi_Click(object sender, EventArgs e)
         {
             ToolStripMenuItem tsmi;
-            ObjectBinder.Bind(sender, out tsmi);
+            TypeBinder.Bind(sender, out tsmi);
             DockContent dc;
-            ObjectBinder.Bind(tsmi.Tag, out dc);
+            TypeBinder.Bind(tsmi.Tag, out dc);
             dc.Activate();
         }
         void RemoveDockFromWindowList(object sender, FormClosedEventArgs e)
         {
             DockContent dc;
-            ObjectBinder.Bind(sender, out dc);
+            TypeBinder.Bind(sender, out dc);
              mnuWindows.DropDownItems.RemoveByKey(dc.Name);
         }
         private IDockContent GetContentFromPersistString(string persistString)

 

  ViewVC Help
Powered by ViewVC 1.1.22