예제 #1
0
        private void kulliste()
        {
            frmKulListe kl  = Application.OpenForms["frmKulListe"] as frmKulListe; //Açık olan form için yazıyoruz..
            KulListesi  cr  = new KulListesi();                                    //cr crystal report kısaltması..
            var         lst = (from s in _db.bgKullanicilars                       //bu bilgiyi bgku
                               select s).ToList();

            if (lst != null)
            {
                PrintYardım ch = new PrintYardım(); //ch crystal help kısası..
                DataTable   dt = ch.ConvertTo(lst); //listeyi crystal report a göre çevirsin..
                cr.SetDataSource(dt);
                crvPrint.ReportSource = cr;
            }
        }
예제 #2
0
        public int KulListe(bool secim = false)
        {
            frmKulListe kl = new frmKulListe();

            if (secim)
            {
                kl.Secim = true;
                kl.ShowDialog();
            }
            else
            {
                kl.MdiParent = Form.ActiveForm;
                kl.Show();
            }
            return(AnaSayfa.Aktarma);
        }
예제 #3
0
        private void kulliste()
        {
            frmKulListe kl = Application.OpenForms["frmKulListe"] as frmKulListe;

            KulListesi cr = new KulListesi();

            var lst = (from s in _db.bgKullanicilars
                       select s).ToList();

            if (lst != null)
            {
                PrintYardım ch = new PrintYardım();
                DataTable   dt = ch.ConvertTo(lst);
                cr.SetDataSource(dt);
                crvPrint.ReportSource = cr;
            }
        }