annotate Implab.Fx.Test/Sample/OverlayForm.cs @ 196:40d7fed4a09e

fixed promise chaining behavior, the error handler doesn't handle result or cancellation handlers exceptions these exceptions are propagated to the next handlers.
author cin
date Mon, 29 Aug 2016 23:15:51 +0300
parents f2559580b481
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
1 using System;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
2 using System.Collections.Generic;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
3 using System.ComponentModel;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
4 using System.Data;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
5 using System.Drawing;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
6 using System.Linq;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
7 using System.Text;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
8 using System.Windows.Forms;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
9
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
10 namespace Implab.Fx.Test.Sample
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
11 {
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
12 public partial class OverlayForm : Form
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
13 {
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
14 public event EventHandler ButtonEvent;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
15
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
16 public OverlayForm()
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
17 {
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
18 InitializeComponent();
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
19 }
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
20
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
21 private void button1_Click(object sender, EventArgs e)
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
22 {
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
23 EventHandler temp = ButtonEvent;
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
24 if (temp != null)
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
25 {
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
26 temp(this,new EventArgs());
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
27 }
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
28 }
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
29 }
f2559580b481 implemented overlay helpers and some animation heplers improvments
cin
parents:
diff changeset
30 }