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

Diff of /trunk/EmuXPortal/PlatformControl.cs

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

revision 21 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 PlatformControl : UserControl      public partial class PlatformControl : UserControl
13      {      {
14          public PlatformControl()          public PlatformControl() { InitializeComponent(); }
         {  
             InitializeComponent();  
         }  
   
15          public Image PlatformImage { get { return platformImage.Image; } set { platformImage.Image = value; } }          public Image PlatformImage { get { return platformImage.Image; } set { platformImage.Image = value; } }
16          public string PlatformName { get { return platformName.Text; } set { platformName.Text = value; } }          public string PlatformName { get { return platformName.Text; } set { platformName.Text = value; } }
17            private void PlatformControl_Load(object sender, EventArgs e)
         private void PlatformControl_Enter(object sender, EventArgs e)  
18          {          {
19                Graphics g = platformName.CreateGraphics();
20                Size size = g.MeasureString(platformName.Text, platformName.Font).ToSize();
21                platformName.Size = new Size(size.Width + 5, platformName.Size.Height);
22          }          }
23      }      }
24  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.22