comparison Implab.Fx.Test/OverlayTest.cs @ 5:f2559580b481

implemented overlay helpers and some animation heplers improvments
author cin
date Tue, 24 Sep 2013 03:31:24 +0400
parents
children 91362ffbecf8
comparison
equal deleted inserted replaced
4:381095ad0a69 5:f2559580b481
1 using System;
2 using System.Text;
3 using System.Collections.Generic;
4 using System.Linq;
5 using Microsoft.VisualStudio.TestTools.UnitTesting;
6 using System.Windows.Forms;
7 using Implab.Fx.Test.Sample;
8 using System.Drawing;
9 using Implab.Fx;
10
11 namespace Implab.Fx.Test
12 {
13 [TestClass]
14 public class OverlayTest
15 {
16 [TestMethod]
17 public void TestMethod1()
18 {
19 var mainForm = new MainForm();
20
21 mainForm.ButtonEvent += (sender, args) =>
22 {
23 var overlay = new OverlayForm();
24 mainForm.OverlayFadeIn(overlay).Then(
25 o => o.ButtonEvent += (s2, args2) =>
26 {
27 o.CloseFadeOut();
28 }
29 );
30 };
31
32 Application.Run(mainForm);
33 }
34 }
35 }