/[EmuXPortal]/branches/mono/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Form1.cs

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

revision 23 by william, Wed Apr 4 03:09:19 2012 UTC revision 25 by william, Wed Apr 4 03:12:17 2012 UTC
# Line 45  namespace EmuXPortal Line 45  namespace EmuXPortal
45          void platform_ctrl_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)          void platform_ctrl_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
46          {          {
47              PlatformControl c = sender as PlatformControl;              PlatformControl c = sender as PlatformControl;
             //PlatformControl d = null;  
             //if (e.KeyCode == Keys.Right)  
             //    d = platform_flow.GetNextControl(c, true) as PlatformControl;  
             //if (e.KeyCode == Keys.Left)  
             //    d = platform_flow.GetNextControl(c, false) as PlatformControl;  
             //logger.WriteLine("Deteted key down: {0} for Platform: {1}", e.KeyCode, d.PlatformName);  
   
48              if (e.KeyCode == Keys.Enter)              if (e.KeyCode == Keys.Enter)
49              {              {
50                  // load this platform                  // load this platform
# Line 59  namespace EmuXPortal Line 52  namespace EmuXPortal
52                  CurrentSelectedRom = c.Tag as IEmuConfig;                  CurrentSelectedRom = c.Tag as IEmuConfig;
53                  rom_flow.Visible = true;                  rom_flow.Visible = true;
54                  rom_flow.BringToFront();                  rom_flow.BringToFront();
55              }                          }
56                if (e.KeyCode == Keys.Back)
57                {
58                    this.Close();
59                }
60          }          }
61    
62          private void platform_flow_VisibleChanged(object sender, EventArgs e)          private void platform_flow_VisibleChanged(object sender, EventArgs e)
# Line 127  namespace EmuXPortal Line 124  namespace EmuXPortal
124          void game_ctrl_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)          void game_ctrl_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
125          {          {
126              GameControl c = sender as GameControl;              GameControl c = sender as GameControl;
             //PlatformControl d = null;  
             //if (e.KeyCode == Keys.Right)  
             //    d = platform_flow.GetNextControl(c, true) as PlatformControl;  
             //if (e.KeyCode == Keys.Left)  
             //    d = platform_flow.GetNextControl(c, false) as PlatformControl;  
             //logger.WriteLine("Deteted key down: {0} for Platform: {1}", e.KeyCode, d.PlatformName);  
   
127              if (e.KeyCode == Keys.Enter)              if (e.KeyCode == Keys.Enter)
128              {              {
129                  IRomConfig config = c.Tag as IRomConfig;                  IRomConfig config = c.Tag as IRomConfig;
# Line 148  namespace EmuXPortal Line 138  namespace EmuXPortal
138                  rom_flow.Visible = false;                  rom_flow.Visible = false;
139                  platform_flow.Visible = true;                  platform_flow.Visible = true;
140              }              }
141          }          }    
   
     
   
       
142      }      }
143  }  }

Legend:
Removed from v.23  
changed lines
  Added in v.25

  ViewVC Help
Powered by ViewVC 1.1.22