/[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 891 by william, Wed Sep 17 05:14:20 2014 UTC revision 892 by william, Wed Sep 17 05:56:41 2014 UTC
# Line 192  namespace RomCheater Line 192  namespace RomCheater
192              if (persistString == typeof(FloatingWebBrowser).ToString()) { return m_wb; }              if (persistString == typeof(FloatingWebBrowser).ToString()) { return m_wb; }
193              else { return null; }              else { return null; }
194          }          }
195          private void SetDockIcon(DockContent c) { c.Icon = Core.Properties.Resources.romcheater_icon; }          private void SetDockIcon(DockContent c)
196          private void SetDockIcon(Form c) { c.Icon = Core.Properties.Resources.romcheater_icon; }          {
197                if (c == null)
198                {
199                    throw new NullReferenceException("");
200                }
201                c.ShowIcon = true;
202                c.DockHandler.CloseButton = false;
203                c.DockHandler.CloseButtonVisible = false;
204                c.DockHandler.AllowEndUserDocking = false;
205                //c.Icon = (Icon)Core.Properties.Resources.romcheater_icon.Clone();
206                c.Icon = Core.Properties.Resources.romcheater_icon;
207                c.Activate();
208            }
209          private void SetDockIcons()          private void SetDockIcons()
210          {          {
211              SetDockIcon(m_LogWindow);                          SetDockIcon(m_LogWindow);
             SetDockIcon(m_AboutBox);  
212              SetDockIcon(m_RamDump);              SetDockIcon(m_RamDump);
213              SetDockIcon(m_PIDSelector);              SetDockIcon(m_PIDSelector);
214              SetDockIcon(m_memoryview);              SetDockIcon(m_memoryview);
# Line 457  namespace RomCheater Line 468  namespace RomCheater
468          public Main() : this(false) { }          public Main() : this(false) { }
469          public Main(bool no_console_redirect)          public Main(bool no_console_redirect)
470          {          {
471              InitializeComponent();              InitializeComponent();            
             this.Icon = Core.Properties.Resources.romcheater_icon;  
472  #if SHOW_DEBUG_MENU  #if SHOW_DEBUG_MENU
473              mnuDebug.Visible = true;              mnuDebug.Visible = true;
474  #else  #else

Legend:
Removed from v.891  
changed lines
  Added in v.892

  ViewVC Help
Powered by ViewVC 1.1.22