コード例 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            RibbonMenuGridAyarlari uc_gridAyarlari = new RibbonMenuGridAyarlari(ribbonPage.Text);

            if (navigationFrame.SelectedPageIndex == 0)
            {
                uc_gridAyarlari.GrdView = gridView1;
            }

            ribbonControl.MergeRibbon(uc_gridAyarlari.ribbonControl1);

            SiteDBEntities2 db      = new SiteDBEntities2();
            var             bloklar = db.S_Bloklar().ToList();

            repositoryItemLookUpEdit1.DataSource = bloklar;
            var daireler = db.S_Daireler().ToList();

            repositoryItemLookUpEdit2.DataSource = daireler;
            var odemeTipi = db.S_OdemeTipi().ToList();

            repositoryItemLookUpEdit3.DataSource = odemeTipi;

            KisiGridGetir();
            CariGridGetir();
        }
コード例 #2
0
        void navBarControl_ActiveGroupChanged(object sender, DevExpress.XtraNavBar.NavBarGroupEventArgs e)
        {
            navigationFrame.SelectedPageIndex = navBarControl.Groups.IndexOf(e.Group);

            if (navigationFrame.SelectedPageIndex == 0)
            {
                KisiGridGetir();
                RibbonMenuGridAyarlari uc_gridAyarlari = new RibbonMenuGridAyarlari(ribbonPage.Text);
                uc_gridAyarlari.GrdView = gridView1;
                ribbonControl.MergeRibbon(uc_gridAyarlari.ribbonControl1);
            }
            else if (navigationFrame.SelectedPageIndex == 0)
            {
                CariGridGetir();
            }
        }