GtkSharp/Source/Addins/MonoDevelop.GtkSharp.Addin/Templates/Projects/Data/Program.cs
2017-10-23 01:25:13 +02:00

23 lines
472 B
C#
Executable file

using System;
using Gtk;
namespace ${Namespace}
{
class Program
{
[STAThread]
public static void Main(string[] args)
{
Application.Init();
var app = new Application("org.gnome.example", GLib.ApplicationFlags.None);
app.Register(GLib.Cancellable.Current);
var win = new MainWindow();
app.AddWindow(win);
win.Show();
Application.Run();
}
}
}