mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-08 11:18:27 +02:00
Move solution and projects to src
This commit is contained in:
31
src/Ryujinx/Ui/Applet/ErrorAppletDialog.cs
Normal file
31
src/Ryujinx/Ui/Applet/ErrorAppletDialog.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Gtk;
|
||||
using Ryujinx.Ui.Common.Configuration;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Ryujinx.Ui.Applet
|
||||
{
|
||||
internal class ErrorAppletDialog : MessageDialog
|
||||
{
|
||||
public ErrorAppletDialog(Window parentWindow, DialogFlags dialogFlags, MessageType messageType, string[] buttons) : base(parentWindow, dialogFlags, messageType, ButtonsType.None, null)
|
||||
{
|
||||
Icon = new Gdk.Pixbuf(Assembly.GetAssembly(typeof(ConfigurationState)), "Ryujinx.Ui.Common.Resources.Logo_Ryujinx.png");
|
||||
|
||||
int responseId = 0;
|
||||
|
||||
if (buttons != null)
|
||||
{
|
||||
foreach (string buttonText in buttons)
|
||||
{
|
||||
AddButton(buttonText, responseId);
|
||||
responseId++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
AddButton("OK", 0);
|
||||
}
|
||||
|
||||
ShowAll();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user