add MapWindow.cs; don't show resources in levels menu
[weland.git] / Weland.cs
blob5bc128d28731a3623ddc80de0baa88ba9a70913c
1 using Gtk;
2 using System;
3 using Cairo;
5 namespace Weland {
6 public class Weland {
7 public static int Main (string[] args) {
8 Application.Init();
10 MapWindow window = new MapWindow("Weland");
11 window.DeleteEvent += new DeleteEventHandler(DeleteWindow);
13 if (args.Length == 1)
14 window.OpenFile(args[0]);
16 window.ShowAll();
17 Application.Run();
18 return 0;
21 static void DeleteWindow(object obj, DeleteEventArgs args) {
22 Application.Quit();
23 args.RetVal = true;