-
Notifications
You must be signed in to change notification settings - Fork 0
/
endGameScreen.cs
54 lines (48 loc) · 1.45 KB
/
endGameScreen.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Game_1._1
{
public partial class endGameScreen : Form
{
public endGameScreen()
{
InitializeComponent();
}
string filePath = Application.StartupPath;
private void endGameScreen_Load(object sender, EventArgs e)
{
UnitsPlayer1.NoMerc = 0;
UnitsPlayer1.NoInf = 0;
UnitsPlayer1.NoSnip = 0;
UnitsPlayer2.NoMerc = 0;
UnitsPlayer2.NoInf = 0;
UnitsPlayer2.NoSnip = 0;
if (MainMenu.win == true)
{
this.BackgroundImage = System.Drawing.Image.FromFile(filePath + "\\pics\\you win.jpg");
}
else
{
this.BackgroundImageLayout = ImageLayout.Tile;
this.BackgroundImage = System.Drawing.Image.FromFile(filePath + "\\pics\\you lose.jpg");
}
}
private void goBackMainMenu_Click(object sender, EventArgs e)
{
this.Close();
MainMenu Open = new MainMenu();
Open.Show();
}
private void closeGame_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}