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

Diff of /trunk/RomCheater/Main.cs

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

revision 314 by william, Tue Jun 5 15:17:41 2012 UTC revision 315 by william, Tue Jun 5 15:24:43 2012 UTC
# Line 81  namespace RomCheater Line 81  namespace RomCheater
81          void AddDockToWindowList(object sender, EventArgs e)          void AddDockToWindowList(object sender, EventArgs e)
82          {          {
83              DockContent dc;              DockContent dc;
84              ObjectBinder.Bind(sender, out dc);              TypeBinder.Bind(sender, out dc);
85              ToolStripMenuItem tsmi = new ToolStripMenuItem(dc.Text);              ToolStripMenuItem tsmi = new ToolStripMenuItem(dc.Text);
86              tsmi.Name = dc.Name;              tsmi.Name = dc.Name;
87              tsmi.Tag = dc;              tsmi.Tag = dc;
88              tsmi.Click += new EventHandler(tsmi_Click);              tsmi.Click += new EventHandler(tsmi_Click);            
89              mnuWindows.DropDownItems.Add(tsmi);              mnuWindows.DropDownItems.Add(tsmi);
90          }          }
   
91          void tsmi_Click(object sender, EventArgs e)          void tsmi_Click(object sender, EventArgs e)
92          {          {
93              ToolStripMenuItem tsmi;              ToolStripMenuItem tsmi;
94              ObjectBinder.Bind(sender, out tsmi);              TypeBinder.Bind(sender, out tsmi);
95              DockContent dc;              DockContent dc;
96              ObjectBinder.Bind(tsmi.Tag, out dc);              TypeBinder.Bind(tsmi.Tag, out dc);
97              dc.Activate();              dc.Activate();
98          }          }
99          void RemoveDockFromWindowList(object sender, FormClosedEventArgs e)          void RemoveDockFromWindowList(object sender, FormClosedEventArgs e)
100          {          {
101              DockContent dc;              DockContent dc;
102              ObjectBinder.Bind(sender, out dc);              TypeBinder.Bind(sender, out dc);
103               mnuWindows.DropDownItems.RemoveByKey(dc.Name);               mnuWindows.DropDownItems.RemoveByKey(dc.Name);
104          }          }
105          private IDockContent GetContentFromPersistString(string persistString)          private IDockContent GetContentFromPersistString(string persistString)

Legend:
Removed from v.314  
changed lines
  Added in v.315

  ViewVC Help
Powered by ViewVC 1.1.22