BlipFace.Helpers.WindowSettings.LoadWindowState C# (CSharp) Method

LoadWindowState() protected method

Load the Window Size Location and State from the settings object
protected LoadWindowState ( ) : void
return void
        protected virtual void LoadWindowState()
        {
            Properties.Settings.Default.Reload();
            Rect rect = Rect.Parse(Properties.Settings.Default[window.GetType().Name].ToString().Replace(';', ','));

            if (rect != Rect.Empty)
            {
                this.window.Left = rect.Left;
                this.window.Top = rect.Top;
                this.window.Width = rect.Width;
                this.window.Height = rect.Height;
            }
        }