Zzz

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 1  →  ?path2? @ 2
/Zzz/Utilities/WindowState.cs
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Jot;
 
namespace Zzz.Utilities
{
public static class WindowState
{
// expose the tracker instance
public static Tracker FormTracker = new Tracker();
 
static WindowState()
{
// tell Jot how to track Window objects
FormTracker.Configure<Form>()
.Id(w => w.Name)
.Properties(w => new { w.Height, w.Width, w.Left, w.Top, w.WindowState })
.PersistOn(nameof(Form.FormClosed));
}
}
}