aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/HelloWorld/main.cs
blob: dc5e2a1355ba3196fb9abafd148dae1eaff3f519 (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
using System;
using Crow;
using Samples;

namespace HelloWorld
{
	class Program : SampleBase {
		public CommandGroup CMDTest = new CommandGroup (
			new ActionCommand("Action", ()=> Console.WriteLine ("Action executed"))
		);
		static void Main (string[] args) {
			DbgLogger.IncludedEvents.AddRange ( new DbgEvtType[] {
				DbgEvtType.MouseEnter,
				DbgEvtType.MouseLeave,
				DbgEvtType.WidgetMouseDown,
				DbgEvtType.WidgetMouseUp,
				DbgEvtType.WidgetMouseClick,
				DbgEvtType.HoverWidget
			});
			using (Interface app = new Program ()) {
				app.Initialized += (sender, e) => (sender as Interface).Load ("#HelloWorld.helloworld.crow").DataSource = sender;
				app.Run ();
			}
		}
	}
}