/[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 17 by william, Wed Apr 4 01:32:37 2012 UTC revision 19 by william, Wed Apr 4 01:55:32 2012 UTC
# Line 70  namespace EmuXPortal Line 70  namespace EmuXPortal
70              foreach (IEmuConfig config in parser.Platforms)              foreach (IEmuConfig config in parser.Platforms)
71              {              {
72                  PlatformControl platform_ctrl = new PlatformControl();                  PlatformControl platform_ctrl = new PlatformControl();
73                    platform_ctrl.Dock = DockStyle.Top;
74                    platform_ctrl.Width = this.Width - 10;
75                  platform_ctrl.Tag = config;                  platform_ctrl.Tag = config;
76                  platform_ctrl.PlatformImage = config.PlatformImage;                  platform_ctrl.PlatformImage = config.PlatformImage;
77                  platform_ctrl.PlatformName = config.PlatformNameLong;                  platform_ctrl.PlatformName = config.PlatformNameLong;
78                  platform_ctrl.PreviewKeyDown += new PreviewKeyDownEventHandler(platform_ctrl_PreviewKeyDown);                  platform_ctrl.PreviewKeyDown += new PreviewKeyDownEventHandler(platform_ctrl_PreviewKeyDown);
79                  platform_flow.Controls.Add(platform_ctrl);                  platform_flow.Controls.Add(platform_ctrl);
80                    //platform_flow.SetFlowBreak(platform_ctrl, true);
81                  platform_ctrl.GotFocus += new EventHandler(platform_ctrl_GotFocus);                  platform_ctrl.GotFocus += new EventHandler(platform_ctrl_GotFocus);
82                  platform_ctrl.LostFocus += new EventHandler(platform_ctrl_LostFocus);                  platform_ctrl.LostFocus += new EventHandler(platform_ctrl_LostFocus);
83                  //CurrentPlatformControl = platform_flow.Controls[0] as PlatformControl;                  //CurrentPlatformControl = platform_flow.Controls[0] as PlatformControl;
84              }              }
85              platform_flow.Controls[0].Select();              platform_flow.Controls[0].Select();
86              (platform_flow.Controls[0] as PlatformControl).BorderStyle = BorderStyle.FixedSingle;              (platform_flow.Controls[0] as PlatformControl).BorderStyle = BorderStyle.FixedSingle;            
87    
88          }          }
89    
90          private void rom_flow_VisibleChanged(object sender, EventArgs e)          private void rom_flow_VisibleChanged(object sender, EventArgs e)
# Line 92  namespace EmuXPortal Line 96  namespace EmuXPortal
96              foreach (IRomConfig config in parser.Roms)              foreach (IRomConfig config in parser.Roms)
97              {              {
98                  GameControl game_ctrl = new GameControl();                  GameControl game_ctrl = new GameControl();
99                    game_ctrl.Dock = DockStyle.Top;
100                    game_ctrl.Width = this.Width - 10;
101                  game_ctrl.Tag = config;                  game_ctrl.Tag = config;
102                  game_ctrl.GameImage = config.RomImage;                  game_ctrl.GameImage = config.RomImage;
103                  game_ctrl.GameName = config.RomTitle;                  game_ctrl.GameName = config.RomTitle;
104                  game_ctrl.PreviewKeyDown += new PreviewKeyDownEventHandler(game_ctrl_PreviewKeyDown);                  game_ctrl.PreviewKeyDown += new PreviewKeyDownEventHandler(game_ctrl_PreviewKeyDown);
105                  rom_flow.Controls.Add(game_ctrl);                  rom_flow.Controls.Add(game_ctrl);
106                    //rom_flow.SetFlowBreak(game_ctrl, true);
107                  game_ctrl.GotFocus += new EventHandler(game_ctrl_GotFocus);                  game_ctrl.GotFocus += new EventHandler(game_ctrl_GotFocus);
108                  game_ctrl.LostFocus += new EventHandler(game_ctrl_LostFocus);                  game_ctrl.LostFocus += new EventHandler(game_ctrl_LostFocus);
109              }              }

Legend:
Removed from v.17  
changed lines
  Added in v.19

  ViewVC Help
Powered by ViewVC 1.1.22