public void Dispose() { rect.Dispose(); if (GotInput == null) { return; } foreach (var d in GotInput.GetInvocationList()) { GotInput -= (ChangedEventHandler)d; } }