Welcome to mirror list, hosted at ThFree Co, Russian Federation.

demo.cs « Gtk « System.Windows.Forms « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1b442c1bc4a7858dbba38e6e8592d121fa47c70c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System.Windows.Forms;

class X {
	static void Demo_Window ()
	{
		Form form = new Form ();

		form.Text = "hello";
		
		form.Visible = true;

		Application.Run ();
	}

	static void Demo_AppRun ()
	{
		Form form = new Form ();

		form.Text = "hello";
		
		Application.Run (form);
	}
	
	static void Main (string [] args)
	{
		string demo = "window";

		if (args.Length > 0)
			demo = args [0];
		
		switch (demo){
		case "window":
			Demo_Window ();
			break;
		case "app_run":
			Demo_AppRun ();
			break;
		}
	}
}