mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-03 14:48:53 +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 {
|
namespace UnionPatcher.Gui.Linux {
|
||||||
public static class Program {
|
public static class Program {
|
||||||
public static void Main(string[] args) {
|
public static void Main() {
|
||||||
Gui.Show();
|
Gui.Show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
using Eto.Forms;
|
namespace UnionPatcher.Gui.Windows {
|
||||||
|
|
||||||
namespace UnionPatcher.Gui.Windows {
|
|
||||||
public static class Program {
|
public static class Program {
|
||||||
public static void Main(string[] args) {
|
public static void Main() {
|
||||||
Gui.Show();
|
Gui.Show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using Eto.Forms;
|
||||||
using Eto.Forms;
|
|
||||||
|
|
||||||
namespace UnionPatcher.Gui {
|
namespace UnionPatcher.Gui {
|
||||||
public static class Gui {
|
public static class Gui {
|
||||||
|
|
|
@ -6,7 +6,7 @@ using Eto.Forms;
|
||||||
namespace UnionPatcher.Gui {
|
namespace UnionPatcher.Gui {
|
||||||
public class MainForm : Form {
|
public class MainForm : Form {
|
||||||
public static Control CreatePatchButton(int tabIndex = 0) {
|
public static Control CreatePatchButton(int tabIndex = 0) {
|
||||||
var control = new Button {
|
Button control = new() {
|
||||||
Text = "Patch!",
|
Text = "Patch!",
|
||||||
TabIndex = tabIndex,
|
TabIndex = tabIndex,
|
||||||
};
|
};
|
||||||
|
@ -19,13 +19,13 @@ namespace UnionPatcher.Gui {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Control CreateHelpButton(int tabIndex = 0) {
|
public static Control CreateHelpButton(int tabIndex = 0) {
|
||||||
var control = new Button {
|
Button control = new() {
|
||||||
Text = "Help",
|
Text = "Help",
|
||||||
TabIndex = tabIndex,
|
TabIndex = tabIndex,
|
||||||
};
|
};
|
||||||
|
|
||||||
control.Click += delegate {
|
control.Click += delegate {
|
||||||
var process = new Process();
|
Process process = new();
|
||||||
|
|
||||||
process.StartInfo.UseShellExecute = true;
|
process.StartInfo.UseShellExecute = true;
|
||||||
process.StartInfo.FileName = "https://www.lbpunion.com";
|
process.StartInfo.FileName = "https://www.lbpunion.com";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue