mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 18:41:26 -07:00
25 lines
658 B
C#
25 lines
658 B
C#
using System;
|
|
using System.Windows;
|
|
|
|
namespace Bloxstrap.UI.BootstrapperDialogs
|
|
{
|
|
static class BaseFunctions
|
|
{
|
|
public static void ShowSuccess(string message, Action? callback)
|
|
{
|
|
Controls.ShowMessageBox(message, MessageBoxImage.Information);
|
|
|
|
if (callback is not null)
|
|
callback();
|
|
|
|
App.Terminate();
|
|
}
|
|
|
|
public static void ShowError(string message)
|
|
{
|
|
Controls.ShowMessageBox($"An error occurred while starting Roblox\n\nDetails: {message}", MessageBoxImage.Error);
|
|
App.Terminate(Bootstrapper.ERROR_INSTALL_FAILURE);
|
|
}
|
|
}
|
|
}
|