stopped using GetEnumerator()

This commit is contained in:
Charlie Kindel
2020-05-24 19:54:38 -06:00
parent ba0e74207f
commit 9a3812da43

View File

@@ -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);
}