mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-23 13:05:17 +00:00
Code Cleanup
This commit is contained in:
parent
24b90855d1
commit
8957792a80
4 changed files with 7 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
namespace UnionPatcher.Gui.Linux {
|
||||
public static class Program {
|
||||
public static void Main(string[] args) {
|
||||
public static void Main() {
|
||||
Gui.Show();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using Eto.Forms;
|
||||
using Eto.Forms;
|
||||
|
||||
namespace UnionPatcher.Gui {
|
||||
public static class Gui {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue