From b642d3736edf0f289fe2e955f0e336c0d019d0e5 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 6 Apr 2019 17:55:27 -0400 Subject: cleanup here and there --- Histacom2/AchievementBox.cs | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'Histacom2/AchievementBox.cs') diff --git a/Histacom2/AchievementBox.cs b/Histacom2/AchievementBox.cs index a65ef23..bf0b582 100644 --- a/Histacom2/AchievementBox.cs +++ b/Histacom2/AchievementBox.cs @@ -12,17 +12,13 @@ using Histacom2.Engine; namespace Histacom2 { - public partial class AchievementBox : Form - { + public partial class AchievementBox : Form { private bool stayOnScreen = false; - public AchievementBox(int type) - { + public AchievementBox(int type) { InitializeComponent(); - this.BringToFront(); - this.Show(); - switch (type) - { + BringToFront(); + switch (type) { case 0: //Piracy Ending BackgroundImage = Properties.Resources.EndingPiracy; stayOnScreen = true; @@ -37,25 +33,22 @@ namespace Histacom2 break; } Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - 202, -102); - while (this.Location.Y != 0) - { + Show(); + while (Location.Y != 0) { Thread.Sleep(5); Location = new Point(Location.X, Location.Y + 1); } - if (!stayOnScreen) - { + if (!stayOnScreen) { Thread.Sleep(3000); - while (this.Location.Y != -102) - { + while (Location.Y != -102) { Thread.Sleep(5); Location = new Point(Location.X, Location.Y - 1); } - this.Close(); + Close(); } } - private void button1_Click(object sender, EventArgs e) - { + private void button1_Click(object sender, EventArgs e) { Program.title.Show(); SaveSystem.CurrentSave = null; SaveSystem.currentTheme = null; -- cgit v1.2.3