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;
}
}