private void btnSaveAs_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (ActiveMdiChild != null) { frmUpdateProjectFile form = ActiveMdiChild as frmUpdateProjectFile; form.SaveAs(); } }
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(); } } }
private void AddPageMdi(string fileName) { frmUpdateProjectFile childForm = null; if (fileName != "" && File.Exists(fileName)) { childForm = new frmUpdateProjectFile(fileName); } else { childForm = new frmUpdateProjectFile(); } childForm.MdiParent = this; childForm.Show(); }