OverlayTest.cs
38 lines
| 879 B
| text/x-csharp
|
CSharpLexer
/ Implab.Fx.Test / OverlayTest.cs
cin
|
r77 | using System.Windows.Forms; | ||
using Implab.Fx.Test.Sample; | ||||
using Implab.Fx; | ||||
#if MONO | ||||
using NUnit.Framework; | ||||
using TestClassAttribute = NUnit.Framework.TestFixtureAttribute; | ||||
using TestMethod = NUnit.Framework.TestAttribute; | ||||
#else | ||||
cin
|
r5 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
cin
|
r77 | |||
#endif | ||||
cin
|
r5 | |||
namespace Implab.Fx.Test | ||||
{ | ||||
[TestClass] | ||||
public class OverlayTest | ||||
{ | ||||
[TestMethod] | ||||
public void TestMethod1() | ||||
{ | ||||
var mainForm = new MainForm(); | ||||
mainForm.ButtonEvent += (sender, args) => | ||||
{ | ||||
var overlay = new OverlayForm(); | ||||
cin
|
r155 | mainForm.OverlayFadeIn(overlay).On( | ||
cin
|
r77 | o => o.ButtonEvent += (s2, args2) => o.CloseFadeOut() | ||
cin
|
r5 | ); | ||
}; | ||||
Application.Run(mainForm); | ||||
} | ||||
} | ||||
} | ||||