Debian Codegraph @

external/rx/Rx/NET/Samples/HOL/CS/Excercise3/Step03/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 frm = new Form()
13 {
14 Controls = { lbl }
15 };
16
17 frm.MouseMove += (sender, args) =>
18 {
19 lbl.Text = args.Location.ToString(); // This has become a position-tracking label.
20 };
21
22 Application.Run(frm);
23 }
24 }
25 }