1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-10-16 14:10:45 +00:00
msfs-popout-panel-manager/UI/ConfirmDialogForm.cs
2021-12-19 21:31:17 -05:00

30 lines
No EOL
729 B
C#

using DarkUI.Forms;
using System;
using System.Windows.Forms;
namespace MSFSPopoutPanelManager.UI
{
public partial class ConfirmDialogForm : DarkForm
{
public ConfirmDialogForm(string title, string Message, bool cancellable = true)
{
InitializeComponent();
Text = title;
labelMessage.Text = Message;
buttonYes.Visible = cancellable;
buttonNo.Visible = cancellable;
buttonOK.Visible = !cancellable;
}
private void buttonYes_Click(object sender, EventArgs e)
{
Close();
}
private void buttonNo_Click(object sender, EventArgs e)
{
Close();
}
}
}