2017-09-23 14:38:43 +00:00
|
|
|
using System;
|
|
|
|
using Gtk;
|
|
|
|
using UI = Gtk.Builder.ObjectAttribute;
|
|
|
|
|
|
|
|
namespace ${Namespace}
|
|
|
|
{
|
|
|
|
class ${EscapedIdentifier} : Dialog
|
|
|
|
{
|
|
|
|
public MyDialog() : this(new Builder("${Namespace}.${EscapedIdentifier}.glade")) { }
|
|
|
|
|
|
|
|
private MyDialog(Builder builder) : base(builder.GetObject("${EscapedIdentifier}").Handle)
|
|
|
|
{
|
2018-02-28 17:55:16 +00:00
|
|
|
builder.Autoconnect(this);
|
2017-09-23 14:38:43 +00:00
|
|
|
DefaultResponse = ResponseType.Cancel;
|
|
|
|
|
|
|
|
Response += OnResponse;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void OnResponse(object o, ResponseArgs args)
|
|
|
|
{
|
|
|
|
Hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|