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

61 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 EditDialog : Dialog<bool>
{
DynamicLayout layout1;
Label label1, label2;
TextBox textBox1;
Button buttonOk, buttonCancel;
private void InitializeComponent()
{
DisplayMode = DialogDisplayMode.Attached;
Size = new Size(400, 160);
buttonOk = new Button();
buttonOk.Text = "Ok";
PositiveButtons.Add(buttonOk);
DefaultButton = buttonOk;
buttonCancel = new Button();
buttonCancel.Text = "Cancel";
NegativeButtons.Add(buttonCancel);
AbortButton = buttonCancel;
layout1 = new DynamicLayout();
layout1.DefaultSpacing = new Size(4, 4);
layout1.Padding = new Padding(6);
layout1.BeginVertical();
layout1.Add(null, true, true);
label1 = new Label();
layout1.Add(label1);
textBox1 = new TextBox();
layout1.Add(textBox1);
label2 = new Label();
label2.TextColor = new Color(SystemColors.ControlText, 0.5f);
label2.TextAlignment = TextAlignment.Center;
layout1.Add(label2);
layout1.Add(null, true, true);
layout1.EndVertical();
Content = layout1;
textBox1.TextChanged += TextBox1_TextChanged;
buttonOk.Click += ButtonOk_Click;
buttonCancel.Click += ButtonCancel_Click;
}
}
}