0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-10-21 11:01:40 +00:00
ryujinx-fork/Ryujinx/Ui/Applet/ErrorAppletDialog.cs

27 lines
715 B
C#
Raw Normal View History

2020-09-27 22:00:38 +00:00
using Gtk;
namespace Ryujinx.Ui.Applet
2020-09-27 22:00:38 +00:00
{
internal class ErrorAppletDialog : MessageDialog
{
public ErrorAppletDialog(Window parentWindow, DialogFlags dialogFlags, MessageType messageType, string[] buttons) : base(parentWindow, dialogFlags, messageType, ButtonsType.None, null)
{
int responseId = 0;
if (buttons != null)
{
foreach (string buttonText in buttons)
{
AddButton(buttonText, responseId);
responseId++;
}
}
else
{
AddButton("OK", 0);
}
ShowAll();
}
}
}