mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
stopped using GetEnumerator()
This commit is contained in:
@@ -164,10 +164,8 @@ namespace UICatalog {
|
||||
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
Win.GetEnumerator ().Reset ();
|
||||
while (Win.GetEnumerator ().MoveNext ()) {
|
||||
var cur = (ProgressDemo)Win.GetEnumerator ().Current;
|
||||
cur?.StopBtnClick ();
|
||||
foreach (var v in Win.Subviews.OfType<ProgressDemo>()) {
|
||||
v?.StopBtnClick ();
|
||||
}
|
||||
base.Dispose (disposing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user