##// END OF EJS Templates
removed the reference to the parent from the promise object this allows...
removed the reference to the parent from the promise object this allows resolved promises to release parents and results they are holding. Added complete set of operations to IPromiseBase interface Subscribing to the cancellation event of the promise should not affect it's IsExclusive property More tests.

File last commit:

r5:f2559580b481 default
r33:b255e4aeef17 default
Show More
OverlayTest.cs
35 lines | 890 B | text/x-csharp | CSharpLexer
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);
}
}
}