private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { this.Hide(); typers.Clear(); foreach (Typer typer in lbTypers.Items) { if (typer.IsActive) { hotKeyManager.UnregisterFKey(typer.hotKeyId); } typers.Add(typer); } typers.SaveLibrary(); }