##// END OF EJS Templates
Reworked cancelation handling, if the cancel handler isn't specified the OperationCanceledException will be handled by the error handler...
Reworked cancelation handling, if the cancel handler isn't specified the OperationCanceledException will be handled by the error handler Any unhandled OperationCanceledException will cause the promise cancelation

File last commit:

r155:037df317f126 v2
r187:dd4a3590f9c6 ref20160224
Show More
OverlayTest.cs
38 lines | 879 B | text/x-csharp | CSharpLexer
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
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif
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).On(
o => o.ButtonEvent += (s2, args2) => o.CloseFadeOut()
);
};
Application.Run(mainForm);
}
}
}