HamBook – Blame information for rev 54
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
54 | office | 1 | using System.Windows.Forms; |
2 | using Jot; |
||
53 | office | 3 | |
4 | namespace HamBook.Utilities |
||
5 | { |
||
6 | public static class WindowState |
||
7 | { |
||
8 | // expose the tracker instance |
||
9 | public static Tracker FormTracker = new Tracker(); |
||
10 | |||
11 | static WindowState() |
||
12 | { |
||
13 | // tell Jot how to track Window objects |
||
14 | FormTracker.Configure<Form>() |
||
15 | .Id(w => w.Name) |
||
16 | .Properties(w => new { w.Height, w.Width, w.Left, w.Top, w.WindowState }) |
||
17 | .PersistOn(nameof(Form.FormClosed)); |
||
54 | office | 18 | } |
53 | office | 19 | } |
54 | office | 20 | } |