Winify – Blame information for rev 44
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
44 | office | 1 | using System.Windows.Forms; |
2 | using Jot; |
||
3 | |||
4 | namespace Winify.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)); |
||
18 | } |
||
19 | } |
||
20 | } |