diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Implab.Fx.Test/OverlayTest.cs	Tue Sep 24 03:31:24 2013 +0400
@@ -0,0 +1,35 @@
+using System;
+using System.Text;
+using System.Collections.Generic;
+using System.Linq;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System.Windows.Forms;
+using Implab.Fx.Test.Sample;
+using System.Drawing;
+using Implab.Fx;
+
+namespace Implab.Fx.Test
+{
+    [TestClass]
+    public class OverlayTest
+    {
+        [TestMethod]
+        public void TestMethod1()
+        {
+            var mainForm = new MainForm();
+            
+            mainForm.ButtonEvent += (sender, args) =>
+            {
+                var overlay = new OverlayForm();
+                mainForm.OverlayFadeIn(overlay).Then(
+                    o => o.ButtonEvent += (s2, args2) =>
+                    {
+                        o.CloseFadeOut();
+                    }
+                );
+            };
+            
+            Application.Run(mainForm);
+        }
+    }
+}