void Help_onExit(object sender, EventArgs e)
{
GameMenu gm1 = new GameMenu(UserID, UserName, Pass);
int h = Screen.PrimaryScreen.Bounds.Height;
int w = Screen.PrimaryScreen.Bounds.Width;
if (w == 1024 && h == 768)
{
gm1.BackgroundImage = Properties.Resources._1024_768;
}
else
{
if (w == 1280 && h == 1024)
{
gm1.BackgroundImage = Properties.Resources._1280_1024;
}
else
{
if (w == 1280 && h == 800)
{
gm1.BackgroundImage = Properties.Resources._1280_800;
}
else
{
if (w == 1366 && h == 768)
{
gm1.BackgroundImage = Properties.Resources._1366_768;
}
else
{
if (w == 1600 && h == 900)
{
gm1.BackgroundImage = Properties.Resources._1600_900;
}
else
{
if (w == 1920 && h == 1080)
{
gm1.BackgroundImage = Properties.Resources._1920_1080;
}
else
{
gm1.BackgroundImage = Properties.Resources.bg;
}
}
}
}
}
}
gm1.onClick_Setting += btn_Setting_onClick;
gm1.onClick_Start += btn_Start_onClick;
gm1.onClick_Help += gm1_onClick_Help;
gm1.onClick_LogOut += gm1_onClick_LogOut;
gm1.onHover_Exit += gm1_onHover_Exit;
gm1.onHover_Help += gm1_onHover_Help;
gm1.onHover_Setting += gm1_onHover_Setting;
gm1.onHover_Start += gm1_onHover_Start;
this.Controls.Clear();
this.Controls.Add(gm1);
}