aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/dockableWindows/dockableWindows.cs
blob: 4b5a0e11b0596318dab8215d8f32819f749b1ece (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
using Crow;

namespace tests
{
	public class BasicTests : SampleBase
	{
		static void Main ()
		{
			using (BasicTests app = new BasicTests ()) {
				app.Run ();
			}
		}

		protected override void OnInitialized () {
			Load ("#ui.test.crow").DataSource = this;
			AddWidget (new DockWindow (this) { Background = Colors.Blue, Left = 10, Top = 110, Resizable = true });
			AddWidget (new DockWindow (this) { Background = Colors.Red, Left = 30, Top = 130, Resizable = true });
			AddWidget (new DockWindow (this) { Background = Colors.Green, Left = 50, Top = 150, Resizable = true });
			AddWidget (new DockWindow (this) { Background = Colors.Yellow, Left = 70, Top = 170, Resizable = true });
			AddWidget (new DockWindow (this) { Background = Colors.Grey, Left = 90, Top = 190, Resizable = true });
		}
		private void refreshGraphicTree (object sender, MouseButtonEventArgs e) {
			NotifyValueChanged ("GraphicTree", (object)null);
			NotifyValueChanged ("GraphicTree", GraphicTree);
		}

	}
}