Files
LuaCsForBarotraumaEP/Libraries/MonoGame.Framework/Src/Tools/Pipeline/Dialogs/DeleteDialog.eto.cs
2019-06-25 16:00:44 +03:00

58 lines
1.7 KiB
C#

// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using Eto.Drawing;
using Eto.Forms;
namespace MonoGame.Tools.Pipeline
{
partial class DeleteDialog : Dialog<bool>
{
DynamicLayout layout1;
Label label1;
TreeGridView treeView1;
Button buttonDelete, buttonCancel;
private void InitializeComponent()
{
Title = "Delete Items";
DisplayMode = DialogDisplayMode.Attached;
Resizable = true;
Size = new Size(450, 300);
MinimumSize = new Size(350, 250);
buttonDelete = new Button();
buttonDelete.Text = "Delete";
PositiveButtons.Add(buttonDelete);
DefaultButton = buttonDelete;
buttonDelete.Style = "Destuctive";
buttonCancel = new Button();
buttonCancel.Text = "Cancel";
NegativeButtons.Add(buttonCancel);
AbortButton = buttonCancel;
layout1 = new DynamicLayout();
layout1.DefaultSpacing = new Size(2, 2);
layout1.BeginVertical();
label1 = new Label();
label1.Wrap = WrapMode.Word;
label1.Text = "The following items will be deleted (this action cannot be undone):";
layout1.Add(label1, true, false);
treeView1 = new TreeGridView();
treeView1.ShowHeader = false;
layout1.Add(treeView1, true, true);
DefaultButton.Text = "Delete";
Content = layout1;
buttonDelete.Click += ButtonDelete_Click;
buttonCancel.Click += ButtonCancel_Click;
}
}
}