1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using MyGUI.Managed;
5 
6 namespace TestApp.Managed
7 {
8     class Program
9     {
10 		[STAThread]
Main(string[] args)11 		public static void Main(string[] args)
12 		{
13 			//PoorPlatformTest();
14 			DefaultPlatformTest();
15 		}
16 
DefaultPlatformTest()17 		private static void DefaultPlatformTest()
18 		{
19 			Export.Initialise();
20 
21 			Test.TestWidgets();
22 
23 			float time = 0;
24 			Export.AddFrameDelegate(delegate(float _time)
25 			{
26 				time += _time;
27 				if (time < 1)
28 					return;
29 				time = 0;
30 
31 				Test_Gui.Update();
32 			});
33 			Export.Run();
34 		}
35 
PoorPlatformTest()36 		private static void PoorPlatformTest()
37 		{
38 			Platform.CreatePlatform("MyGUI.log");
39 			Platform.CreateGui("MyGUICore.xml");
40 
41 			Test.TestWidgets();
42 
43 			Platform.DestroyGui();
44 			Platform.DestroyPlatform();
45 		}
46 	}
47 }
48