annotate Implab.Fx.Test/Sample/OverlayForm.cs @ 203:4d9830a9bbb8 v2

Added 'Fail' method to RunnableComponent which allows component to move from Running to Failed state. Added PollingComponent a timer based runnable component More tests Added FailPromise a thin class to wrap exceptions Fixed error handling in SuccessPromise classes.
author cin
date Tue, 18 Oct 2016 17:49:54 +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 }