Example #1
0
        private void Ofis_Load(object sender, EventArgs e)
        {
            RibbonMenuGridAyarlari uc_gridAyarlari = new RibbonMenuGridAyarlari(ribbonPage1.Text);

            uc_gridAyarlari.GrdView = gvOfis;
            ribbonControl1.MergeRibbon(uc_gridAyarlari.ribbonControl1);

            DataGetir();
        }
Example #2
0
        private void Baglanti_Load(object sender, EventArgs e)
        {
            RibbonMenuGridAyarlari uc_gridAyarlari = new RibbonMenuGridAyarlari(ribbonPage1.Text);

            uc_gridAyarlari.GrdView = gvBaglanti;
            ribbonControl1.MergeRibbon(uc_gridAyarlari.ribbonControl1);

            var meslek = data.S_Tip(2).ToList();

            cmbMeslek.DataSource = meslek;

            DataGetir(-1);
        }
        private void XtraForm1_Load(object sender, EventArgs e)
        {
            try
            {
                tabPane1.SelectedPageIndex = 0;

                splitContainerControl1.FixedPanel       = DevExpress.XtraEditors.SplitFixedPanel.Panel2;
                splitContainerControl1.SplitterPosition = this.Width / 3;
                //xtraTabControl1.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False;
                panelControl1.Invalidate();

                RibbonMenuGridAyarlari uc_gridAyarlari = new RibbonMenuGridAyarlari(ribbonPage1.Text);
                uc_gridAyarlari.GrdView = gvBaglanti;
                //InsertItem(0, "test", uc_gridAyarlari);
                ribbonControl1.MergeRibbon(uc_gridAyarlari.ribbonControl1);

                Cursor.Current = Cursors.WaitCursor;

                var meslek = data.S_Tip(2).ToList();
                if (meslek.Count > 0)
                {
                    cmbMeslek.DataSource = meslek;
                }

                var personel = data.S_Personel(-1).ToList();
                if (personel.Count > 0)
                {
                    cmbPersonelID.DataSource = personel;
                }

                var tip = data.S_Tip(17).ToList();
                if (tip.Count > 0)
                {
                    cmbHareketTipi.DataSource = tip;
                }

                //lblHareketler_Click(null,null);

                //pictureEdit1.Properties.ContextMenuStrip = new ContextMenuStrip();

                BaglantiDataGetir(-1);

                formyuklendi = true;

                Cursor.Current = Cursors.Default;
            }
            catch (Exception)
            {
            }
        }