Esempio n. 1
0
        private void MdiManager_PageRemoved(object sender, DevExpress.XtraTabbedMdi.MdiTabPageEventArgs e)
        {
            string _frmName = e.Page.MdiChild.Tag as string;

            if (IsExistForm(_frmName))
            {
                frmContainer.Remove(_frmName);
            }
            ShowHideFormatCategory(CurrentForm);
            GC.Collect();
        }
Esempio n. 2
0
        private void xtraTabbedMdiManager1_SelectedPageChanged(object sender, System.EventArgs e)
        {
            string ee = "es";

            DevExpress.XtraTabbedMdi.MdiTabPageEventArgs pa = (DevExpress.XtraTabbedMdi.MdiTabPageEventArgs)e;
            if (pa.Page == null)
            {
                ee = "null";
            }
            else
            {
                ee = pa.Page.Text;
            }

            switch (ee)
            {
            case "frmMailEdit":
                ribbonPage2.Visible = true;

                ribbonPage1.Visible = false;

                break;

            case "frmLogin":

                ribbonPage2.Visible = false;
                ribbonPage1.Visible = true;
                break;

            case "null":
                ribbonPage2.Visible = false;
                ribbonPage1.Visible = false;
                break;

            default:
                break;
            }
        }
 private void xtraTabbedMdiManager1_PageRemoved(object sender, DevExpress.XtraTabbedMdi.MdiTabPageEventArgs e)
 {
     InitWindows();
 }
 private void xtraTabbedMdiManager1_PageAdded(object sender, DevExpress.XtraTabbedMdi.MdiTabPageEventArgs e)
 {
     InitWindows();
     e.Page.Image = imageList1.Images[rnd.Next(imageList1.Images.Count - 1)];
 }