Horizon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 using Jot;
2 using System;
3 using System.Collections.Generic;
4 using System.Linq;
5 using System.Text;
6 using System.Threading.Tasks;
7 using System.Windows.Forms;
8  
9 namespace Horizon.Utilities
10 {
11 public static class WindowState
12 {
13 // expose the tracker instance
14 public static Tracker FormTracker = new Tracker();
15  
16 static WindowState()
17 {
18 // tell Jot how to track Window objects
19 FormTracker.Configure<Form>()
20 .Id(form => form.Name)
21 .Properties(form => new { form.Height, form.Width, form.Left, form.Top, form.WindowState })
22 .PersistOn(nameof(Form.FormClosed));
23  
24 }
25 }
26 }