GtkSharp/Source/Addins/MonoDevelop.GtkSharp.Addin/Templates/File/Data/Dialog.fs
2018-03-01 14:41:53 +01:00

14 lines
383 B
Forth

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"))