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

16 lines
421 B
C#

using System;
using Gtk;
using UI = Gtk.Builder.ObjectAttribute;
namespace ${Namespace}
{
class ${EscapedIdentifier} : Window
{
public ${EscapedIdentifier}() : this(new Builder("${Namespace}.${EscapedIdentifier}.glade")) { }
private ${EscapedIdentifier}(Builder builder) : base(builder.GetObject("${EscapedIdentifier}").Handle)
{
builder.Autoconnect(this);
}
}
}