From 8957792a80877f83a691153b8cac44c0a1e98d2f Mon Sep 17 00:00:00 2001 From: jvyden Date: Mon, 18 Oct 2021 00:38:36 -0400 Subject: [PATCH] Code Cleanup --- UnionPatcher.Gui.Linux/Program.cs | 2 +- UnionPatcher.Gui.Windows/Program.cs | 6 ++---- UnionPatcher.Gui/Gui.cs | 3 +-- UnionPatcher.Gui/MainForm.cs | 6 +++--- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/UnionPatcher.Gui.Linux/Program.cs b/UnionPatcher.Gui.Linux/Program.cs index c8c4fc2..b989300 100644 --- a/UnionPatcher.Gui.Linux/Program.cs +++ b/UnionPatcher.Gui.Linux/Program.cs @@ -1,6 +1,6 @@ namespace UnionPatcher.Gui.Linux { public static class Program { - public static void Main(string[] args) { + public static void Main() { Gui.Show(); } } diff --git a/UnionPatcher.Gui.Windows/Program.cs b/UnionPatcher.Gui.Windows/Program.cs index 6a80b24..e2142f9 100644 --- a/UnionPatcher.Gui.Windows/Program.cs +++ b/UnionPatcher.Gui.Windows/Program.cs @@ -1,8 +1,6 @@ -using Eto.Forms; - -namespace UnionPatcher.Gui.Windows { +namespace UnionPatcher.Gui.Windows { public static class Program { - public static void Main(string[] args) { + public static void Main() { Gui.Show(); } } diff --git a/UnionPatcher.Gui/Gui.cs b/UnionPatcher.Gui/Gui.cs index fbbf6f5..4535294 100644 --- a/UnionPatcher.Gui/Gui.cs +++ b/UnionPatcher.Gui/Gui.cs @@ -1,5 +1,4 @@ -using System; -using Eto.Forms; +using Eto.Forms; namespace UnionPatcher.Gui { public static class Gui { diff --git a/UnionPatcher.Gui/MainForm.cs b/UnionPatcher.Gui/MainForm.cs index 7f9a474..ca5bfe6 100644 --- a/UnionPatcher.Gui/MainForm.cs +++ b/UnionPatcher.Gui/MainForm.cs @@ -6,7 +6,7 @@ using Eto.Forms; namespace UnionPatcher.Gui { public class MainForm : Form { public static Control CreatePatchButton(int tabIndex = 0) { - var control = new Button { + Button control = new() { Text = "Patch!", TabIndex = tabIndex, }; @@ -19,13 +19,13 @@ namespace UnionPatcher.Gui { } public static Control CreateHelpButton(int tabIndex = 0) { - var control = new Button { + Button control = new() { Text = "Help", TabIndex = tabIndex, }; control.Click += delegate { - var process = new Process(); + Process process = new(); process.StartInfo.UseShellExecute = true; process.StartInfo.FileName = "https://www.lbpunion.com";