Spring – Rev 1

Subversion Repositories:
Rev:
using System.Windows.Forms;
using Jot;

namespace Spring.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));
        }
    }
}

Generated by GNU Enscript 1.6.5.90.