private void btnSave_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FlowMap canvas = this.ActiveMdiChild as FlowMap; if (canvas != null) { canvas.Save(); } }
private void btnSaveAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { foreach (Form f in this.MdiChildren) { FlowMap w = f as FlowMap; if (w != null) { w.Save(); } } }