Пример #1
0
 private void btnSaveAs_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (ActiveMdiChild != null)
     {
         frmUpdateProjectFile form = ActiveMdiChild as frmUpdateProjectFile;
         form.SaveAs();
     }
 }
Пример #2
0
 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();
         }
     }
 }
Пример #3
0
        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();
        }