private void bbiStopGet_ItemClick(object sender, ItemClickEventArgs e) { if (this.ActiveMdiChild.GetType() == typeof(Chapters)) { Chapters ch = this.ActiveMdiChild as Chapters; ch.StopDownload(); } }
private void bbiStopDownContent_ItemClick(object sender, ItemClickEventArgs e) { foreach (Form f in this.MdiChildren) { if (f.GetType() == typeof(Chapters)) { Chapters ch = f as Chapters; ch.StopDownload(); } } }