ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/EmuXPortal/branches/uienhancements/EmuXPortal/PlatformControl.cs
Revision: 51
Committed: Sun Apr 8 10:31:12 2012 UTC (10 years, 11 months ago) by william
File size: 902 byte(s)
Log Message:
create branch: uienhancements

File Contents

# Content
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Drawing;
5 using System.Data;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9
10 namespace EmuXPortal
11 {
12 public partial class PlatformControl : UserControl
13 {
14 public PlatformControl() { InitializeComponent(); }
15 public Image PlatformImage { get { return platformImage.Image; } set { platformImage.Image = value; } }
16 public string PlatformName { get { return platformName.Text; } set { platformName.Text = value; } }
17 private void PlatformControl_Load(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 }