buypeeb-cs/AddItemDialogue.cs

23 lines
617 B
C#
Raw Permalink Normal View History

2020-09-01 09:58:35 +00:00
using Gtk;
namespace Buypeeb {
internal class AddItemDialogue : Dialog {
2021-06-15 02:19:12 +00:00
public AddItemDialogue() : this(new Builder("add.glade")) { }
2020-09-01 09:58:35 +00:00
private AddItemDialogue(Builder builder) : base(builder.GetObject("DialogueAdd").Handle) {
Title = "Add item";
2020-09-01 09:58:35 +00:00
builder.Autoconnect(this);
entryURL = (Entry) builder.GetObject("EntryAddURL");
entryName = (Entry) builder.GetObject("EntryAddName");
2020-09-01 09:58:35 +00:00
DeleteEvent += Window_Shutdown;
}
public Entry entryURL { get; }
public Entry entryName { get; }
private static void Window_Shutdown(object sender, DeleteEventArgs args) {
2020-09-01 09:58:35 +00:00
Application.Quit();
}
}
}