forked from RecreatingResonate/ResonateII
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdanb.cs
32 lines (29 loc) · 856 Bytes
/
danb.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ResonateII
{
public partial class danb : Form
{
public static string keyBuff = "";
public danb()
{
InitializeComponent();
int mX = label1.Width;
int mY = label1.Height;
Width = Screen.PrimaryScreen.Bounds.Width;
Height = Screen.PrimaryScreen.Bounds.Height;
label1.Location = new Point((Width / 2) - (mX / 2), (Height / 2) - (mY / 2));
}
private void danb_KeyPress(object sender, KeyPressEventArgs e)
{
keyBuff = keyBuff + e.KeyChar;
if (keyBuff.Contains("Happy Birthday Dan")) Close();
}
}
}