protected virtual void SaveWindowState() { Properties.Settings.Default[window.GetType().Name] = this.window.RestoreBounds.ToString(); Properties.Settings.Default.Save(); }