/[EmuXPortal]/trunk/EmuXPortal/GameControl.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/GameControl.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 22 by william, Wed Apr 4 02:39:20 2012 UTC
# Line 11  namespace EmuXPortal Line 11  namespace EmuXPortal
11  {  {
12      public partial class GameControl : UserControl      public partial class GameControl : UserControl
13      {      {
14          public GameControl()          public GameControl() { InitializeComponent(); }
         {  
             InitializeComponent();  
         }  
15          public Image GameImage { get { return gameImage.Image; } set { gameImage.Image = value; } }          public Image GameImage { get { return gameImage.Image; } set { gameImage.Image = value; } }
16          public string GameName { get { return gameName.Text; } set { gameName.Text = value; } }          public string GameName { get { return gameName.Text; } set { gameName.Text = value; } }
17            private void GameControl_Load(object sender, EventArgs e)
18            {
19                Graphics g = gameName.CreateGraphics();
20                Size size = g.MeasureString(gameName.Text, gameName.Font).ToSize();
21                gameName.Size = new Size(size.Width + 5, gameName.Size.Height);
22            }
23      }      }
24  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.22