private void btnSave_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (ActiveMdiChild != null) { frmUpdateProjectFile form = ActiveMdiChild as frmUpdateProjectFile; form.Save(); } }
private void btnSaveAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { for (int i = 0; i < MdiChildren.Length; i++) { if (MdiChildren[i] is frmUpdateProjectFile) { frmUpdateProjectFile form = MdiChildren[i] as frmUpdateProjectFile; form.Save(); } } }