Commit | Line | Data |
---|---|---|
21c4e167 H |
1 | /* |
2 | pracuje se na tom... | |
3 | ||
4 | compile with | |
5 | mcs hello.cs -pkg:gtk-sharp-2.0 | |
6 | mono hello.exe | |
7 | */ | |
8 | ||
9 | using Gtk; | |
10 | using System; | |
11 | ||
12 | class Hello { | |
13 | ||
14 | static void Main() | |
15 | { | |
16 | Application.Init (); | |
17 | ||
18 | GTKBuilder builder = new GtkBuilder(); | |
19 | ||
20 | builder->add_from_file("hello.ui"); | |
21 | builder->connect_signals(); | |
22 | ||
23 | Window window = new Window ("helloworld"); | |
24 | window.Show(); | |
25 | ||
26 | Application.Run (); | |
27 | ||
28 | } | |
29 | } | |
30 |