using System;
using System.Drawing;
using System.Text;
using System.IO;
using System.Reflection;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace UniverseReport
{
internal enum Schemes{MacOs,Xp,Plex};
internal class SkinImage
{
public static ImageObject button;
public static ImageObject checkbox;
public static ImageObject radiobutton;
private Schemes scheme=Schemes.MacOs;
public SkinImage()
{
}
static SkinImage()
{
Xp1skin();
}
protected static void MacSkin()
{
button=new ImageObject("UniverseReport.mac_button.png",5,Rectangle.FromLTRB(14,11,14,11));
checkbox=new ImageObject("UniverseReport.mac_checkbox.png",12,new Rectangle(0,0,0,0));
radiobutton=new ImageObject("UniverseReport.mac_radiobutton.png",8,new Rectangle(0,0,0,0));
}
protected static void Xp1skin()
{
button = new ImageObject("UniverseReport.xp1_button.png",5,Rectangle.FromLTRB(8,9,8,9));
checkbox = new ImageObject("UniverseReport.xp1_checkbox.png",12,new Rectangle(0,0,0,0));
radiobutton = new ImageObject("UniverseReport.xp1_radiobutton.png",8,new Rectangle(0,0,0,0));
}
protected static void Plexskin()
{
button = new ImageObject("UniverseReport.Plex_button.png",5,Rectangle.FromLTRB(8,9,8,9));
checkbox = new ImageObject("UniverseReport.Plex_checkbox.png",12,new Rectangle(0,0,0,0));
radiobutton = new ImageObject("UniverseReport.Plex_radiobutton.png",8,new Rectangle(0,0,0,0));
}
public Schemes Scheme
{
get
{ return scheme;
}
set
{
scheme = value;
switch (scheme)
{
case Schemes.MacOs:
MacSkin();
break;
case Schemes.Xp:
Xp1skin();
break;
case Schemes.Plex:
Plexskin();
break;
}
}
}
}
}