external/rx/Rx/NET/Samples/HOL/CS/Excercise3/Step05/Program.cs
raw| 1 | using System; |
| 2 | using System.Reactive.Linq; |
| 3 | using System.Windows.Forms; |
| 4 | |
| 5 | namespace Excercise3 |
| 6 | { |
| 7 | class Program |
| 8 | { |
| 9 | static void Main() |
| 10 | { |
| 11 | var lbl = new Label(); |
| 12 | var txt = new TextBox(); |
| 13 | |
| 14 | var frm = new Form() |
| 15 | { |
| 16 | Controls = { lbl} |
| 17 | }; |
| 18 | |
| 19 | frm.Controls.Add(txt); |
| 20 | |
| 21 | Application.Run(frm); |
| 22 | } |
| 23 | } |
| 24 | } |