public void Change() { foreach (Form f in MdiChildren) { IUpdate u = f as IUpdate; if (u != null) { u.UpdateTemp(temp); u.UpdatePress(press); u.UpdateAH(airh); } } }