mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-19 19:15:28 +00:00
* Code cleanup and update to .NET 8 * Fix macOS requiring staging directory to be selected. Also places eboots on Desktop on macos, to avoid them being inside the app bundle. * Fix keys discovery on mac * Removed debug logging, made GetExecutablePath more robust. * Created a script for building on mac, as creating a universal binary is somewhat involved * Update UnionPatcher.Gui/Forms/ModeSelectionForm.cs Co-authored-by: sudokoko <koko@sudokoko.xyz> * Apply suggestions from code review Co-authored-by: Josh <josh@slendy.pw> --------- Co-authored-by: sudokoko <koko@sudokoko.xyz> Co-authored-by: Josh <josh@slendy.pw>
18 lines
No EOL
622 B
C#
18 lines
No EOL
622 B
C#
using Eto.Forms;
|
|
using LBPUnion.UnionPatcher.Gui.Forms;
|
|
|
|
namespace LBPUnion.UnionPatcher.Gui;
|
|
|
|
public static class Gui {
|
|
public static void Show() {
|
|
new Application().Run(new ModeSelectionForm());
|
|
}
|
|
|
|
public static void CreateOkDialog(string title, string errorMessage) {
|
|
MessageBox.Show(errorMessage, title, MessageBoxButtons.OK);
|
|
}
|
|
public static bool CreateConfirmationDialog(string title, string errorMessage) {
|
|
DialogResult result = MessageBox.Show(errorMessage, title, MessageBoxButtons.YesNo, MessageBoxType.Question);
|
|
return result == DialogResult.Yes;
|
|
}
|
|
} |