aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/TitleScreen.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-08-14 13:57:26 -0400
committerlempamo <[email protected]>2017-08-14 13:57:26 -0400
commit65d251d6a605ec2f9a45e819546421c6644ab245 (patch)
tree11e4a47a22e0fa2b85145edaa931e9f6117db2c1 /TimeHACK.Main/TitleScreen.cs
parent1f59dd91abdfc0a320e60cfcad2ef2917af7ddcf (diff)
downloadhistacom2-65d251d6a605ec2f9a45e819546421c6644ab245.tar.gz
histacom2-65d251d6a605ec2f9a45e819546421c6644ab245.tar.bz2
histacom2-65d251d6a605ec2f9a45e819546421c6644ab245.zip
added proper wordpad icon
Diffstat (limited to 'TimeHACK.Main/TitleScreen.cs')
-rw-r--r--TimeHACK.Main/TitleScreen.cs19
1 files changed, 5 insertions, 14 deletions
diff --git a/TimeHACK.Main/TitleScreen.cs b/TimeHACK.Main/TitleScreen.cs
index 4523478..a41c413 100644
--- a/TimeHACK.Main/TitleScreen.cs
+++ b/TimeHACK.Main/TitleScreen.cs
@@ -33,17 +33,17 @@ namespace TimeHACK
public const int WM_NCLBUTTONDOWN = 0xA1;
public const int HT_CAPTION = 0x2;
- [DllImportAttribute("user32.dll")]
+ [DllImport("user32.dll")]
public static extern int SendMessage(IntPtr hWnd,
int Msg, int wParam, int lParam);
- [DllImportAttribute("user32.dll")]
+ [DllImport("user32.dll")]
public static extern bool ReleaseCapture();
public TitleScreen()
{
InitializeComponent();
- this.startmenu.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ this.startmenu.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2);
if (!File.Exists(Path.Combine(DataDirectory, "o.k")))
{
SeizureWarning sw = new SeizureWarning();
@@ -113,10 +113,7 @@ namespace TimeHACK
}
// only allow one decimal point
- if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1))
- {
- e.Handled = true;
- }
+ if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1)) e.Handled = true;
}
// When the TitleScreen Loads
@@ -207,13 +204,7 @@ namespace TimeHACK
try
{
// Time to close all the game applications
- foreach (Form frm in Application.OpenForms)
- {
- if (frm.Tag.ToString() != "ignoreFormOnTaskbar")
- {
- frm.Close();
- }
- }
+ foreach (Form frm in Application.OpenForms) if (frm.Tag.ToString() != "ignoreFormOnTaskbar") frm.Close();
} catch {
}