HamBook – Diff between revs 53 and 54

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 53 Rev 54
Line 1... Line -...
1 using Jot; -  
2 using System; -  
3 using System.Collections.Generic; 1 using System.Windows.Forms;
4 using System.Linq; -  
5 using System.Text; 2 using Jot;
6 using System.Threading.Tasks; -  
7 using System.Windows.Forms; -  
Line 8... Line 3...
8   3  
9 namespace HamBook.Utilities 4 namespace HamBook.Utilities
10 { 5 {
11 public static class WindowState 6 public static class WindowState
Line 18... Line 13...
18 // tell Jot how to track Window objects 13 // tell Jot how to track Window objects
19 FormTracker.Configure<Form>() 14 FormTracker.Configure<Form>()
20 .Id(w => w.Name) 15 .Id(w => w.Name)
21 .Properties(w => new { w.Height, w.Width, w.Left, w.Top, w.WindowState }) 16 .Properties(w => new { w.Height, w.Width, w.Left, w.Top, w.WindowState })
22 .PersistOn(nameof(Form.FormClosed)); 17 .PersistOn(nameof(Form.FormClosed));
23 18 }
24 } 19 }
25 } -  
26 } 20 }
27   21