This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
HelloWorld/C#/gtk.cs
TruncatedDinosour 2aa0f12126
Create gtk.cs
2021-12-05 07:07:29 +08:00

24 lines
417 B
C#

using Gtk;
using GtkSharp;
using System;
class Hello {
static void Main()
{
Application.Init ();
Window window = new Window("");
window.DeleteEvent += cls_evn;
Button close = new Button ("Hello world");
close.Clicked += new EventHandler(cls_evn);
window.Add(close);
window.ShowAll();
Application.Run ();
}
static void cls_evn(object obj, EventArgs args)
{
Application.Quit();
}
}