Mercurial > pub > ImplabNet
annotate Implab.Fx.Test/OverlayTest.cs @ 14:e943453e5039 promises
Implemented interllocked queue
fixed promise syncronization
author | cin |
---|---|
date | Wed, 06 Nov 2013 17:49:12 +0400 |
parents | f2559580b481 |
children | 91362ffbecf8 |
rev | line source |
---|---|
5
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
1 using System; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
2 using System.Text; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
3 using System.Collections.Generic; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
4 using System.Linq; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
5 using Microsoft.VisualStudio.TestTools.UnitTesting; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
6 using System.Windows.Forms; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
7 using Implab.Fx.Test.Sample; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
8 using System.Drawing; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
9 using Implab.Fx; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
10 |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
11 namespace Implab.Fx.Test |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
12 { |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
13 [TestClass] |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
14 public class OverlayTest |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
15 { |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
16 [TestMethod] |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
17 public void TestMethod1() |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
18 { |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
19 var mainForm = new MainForm(); |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
20 |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
21 mainForm.ButtonEvent += (sender, args) => |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
22 { |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
23 var overlay = new OverlayForm(); |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
24 mainForm.OverlayFadeIn(overlay).Then( |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
25 o => o.ButtonEvent += (s2, args2) => |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
26 { |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
27 o.CloseFadeOut(); |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
28 } |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
29 ); |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
30 }; |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
31 |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
32 Application.Run(mainForm); |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
33 } |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
34 } |
f2559580b481
implemented overlay helpers and some animation heplers improvments
cin
parents:
diff
changeset
|
35 } |