private void OnWindowCloseAll(object sender, EventArgs e) { foreach (var form in this.MdiChildren) { form.Close(); } }