annotate Implab.Fx.Test/Sample/MainForm.cs @ 209:a867536c68fc v2

Bound promise to CancellationToken Added new states to ExecutionSate enum. Added Safe.Guard() method to handle cleanup of the result of the promise
author cin
date Wed, 16 Nov 2016 03:06:08 +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 MainForm : 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 MainForm()
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 }