Bugfix for TaggedButtonGrid in combination with AutoCleanForm

This commit is contained in:
FlorianDahn
2023-06-04 17:15:30 +02:00
parent cd75275950
commit 6ae92b0b29
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -447,4 +447,10 @@ public class FormBase : IDisposable
Controls.Remove(c);
}
}
/// <summary>
/// Returns if this instance is a subclass of AutoCleanForm. Necessary to prevent message deletion if not necessary.
/// </summary>
public bool IsAutoCleanForm() => this.GetType().IsSubclassOf(typeof(AutoCleanForm));
}