public void SaveWindowState(RegistryKey key)
{
CheckDisposed();
if(Parent.FindForm().WindowState == FormWindowState.Minimized)
key.SetValue(Parent.GetType().Name + sWindowState, (int)FormWindowState.Normal);
else
key.SetValue(Parent.GetType().Name + sWindowState, (int)Parent.FindForm().WindowState);
}