-
Notifications
You must be signed in to change notification settings - Fork 0
/
NGNP.cs
54 lines (52 loc) · 1.65 KB
/
NGNP.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 Space_Conqueror
{
public partial class NGNP : Form
{
public NGNP()
{
InitializeComponent();
CenterFormToScreen();
}
protected void CenterFormToScreen()
{
Screen screen = Screen.FromControl(this);
Rectangle workingArea = screen.WorkingArea;
this.Location = new Point(
Math.Max(workingArea.X, workingArea.X + (workingArea.Width - this.Width) / 2),
Math.Max(workingArea.Y, workingArea.Y + (workingArea.Height - this.Height) / 2)
);
}
private void npb_Click(object sender, EventArgs e)
{
if(nptb.TextLength > 0)
{
string Errigour = "Errigour";
string Dopy = "Dopy";
Program.Playing = new();
Program.Playing.P.Name = nptb.Text;
if (nptb.Text == Errigour)
{
Program.Playing.P.Dollars = 1000000000.01;
Program.Playing.P.Level = 45;
}
if (nptb.Text == Dopy)
{
Program.Playing.P.Dollars = 4000.01;
}
Program.Playing.UpdatePlayingFormLabels();
Program.MF.Hide();
Program.Playing.Show();
this.Close();
}
}
}
}