SIL.FieldWorks.Common.Controls.Persistence.SaveWindowState C# (CSharp) Method

SaveWindowState() private method

private SaveWindowState ( RegistryKey key ) : void
key Microsoft.Win32.RegistryKey
return void
		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);
		}