Exemplo n.º 1
0
        private void tmrDashboard_Tick(object sender, EventArgs e)
        {
            if (!dashboardTimerCalisti)
            {
                if (Genel.AktifKullanici_DashboardOtomatikYenilensinMi == false || Genel.AktifKullanici_DashboardID <= 0)
                {
                    tmrDashboard.Enabled = false;
                    return;
                }

                if (Convert.ToInt32(Genel.AktifKullanici_DashboardYenilemeSuresi) > 0)
                {
                    tmrDashboard.Interval = Genel.AktifKullanici_DashboardYenilemeSuresi * 60000;
                }

                //F_EvraklarDashboardGoster frmdashboardgoster = new F_EvraklarDashboardGoster(Genel.AktifKullanici_DashboardID, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, null);

                DashboardForm frm = new DashboardForm(Genel.AktifKullanici_DashboardID); //Genel.AktifKullanici_DashboardID
                if (MDIFormAcikMi(frm))
                {
                    XtraMdiTabPage page = FindPageByText(frm.Text);
                    page.MdiChild.Close();
                }
                frm.MdiParent = this;
                frm.Show();
                dashboardTimerCalisti = true;
            }
        }
Exemplo n.º 2
0
        private void barButtonItem8_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form AcikFormlar = Application.OpenForms["DashboardForm"];

            if (AcikFormlar != null)
            {
                XtraMdiTabPage page = FindPageByText("Dashboard");
                xtraTabbedMdiManager1.SelectedPage = page;
                ribbonControl1.HideApplicationButtonContentControl();
                return;
            }
            DashboardForm frm = new DashboardForm(4);

            frm.MdiParent = this;
            frm.Show();
        }