GtkSharp/Source/Addins/MonoDevelop.GtkSharp.Addin/Templates/File/Data/Dialog.fs

14 lines
383 B
Forth
Raw Normal View History

2018-02-28 17:55:16 +00:00
namespace ${Namespace}
open Gtk
type ${EscapedIdentifier} (builder : Builder) as this =
inherit Dialog(builder.GetObject("${EscapedIdentifier}").Handle)
do
this.DefaultResponse <- ResponseType.Cancel;
this.Response.Add(fun _ ->
this.Hide();
)
new() = new ${EscapedIdentifier}(new Builder("${Namespace}.${EscapedIdentifier}.glade"))