Code Cleanup

This commit is contained in:
jvyden 2021-10-18 00:38:36 -04:00
parent 24b90855d1
commit 8957792a80
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
4 changed files with 7 additions and 10 deletions

View file

@ -1,6 +1,6 @@
namespace UnionPatcher.Gui.Linux {
public static class Program {
public static void Main(string[] args) {
public static void Main() {
Gui.Show();
}
}

View file

@ -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();
}
}

View file

@ -1,5 +1,4 @@
using System;
using Eto.Forms;
using Eto.Forms;
namespace UnionPatcher.Gui {
public static class Gui {

View file

@ -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";