All pastes #341880 Raw Edit

Stuff

public text v1 · immutable
#341880 ·published 2007-02-05 22:33 UTC
rendered paste body
// Alp Toker <alp@atoker.com>
// gmcs -r:nhildon.dll -pkg:gtk-sharp-2.0 hello.cs
// Use the provided nhildon.dll.config

using System;
using Gtk;
using Hildon;

public class HelloHildon
{
	public static void Main ()
	{
		Application.Init ();

		Program program = Program.Instance;

		Hildon.Window window = new Hildon.Window ();
		window.Destroyed += delegate {Application.Quit ();};

		program.AddWindow (window);

		window.BorderWidth = 6;

		Label label = new Label ("Hello Mono/Hildon");
		window.Add (label);
		window.ShowAll ();
		
		Application.Run ();
	}
}