private void Urunler() { Model.UrunBul lst = Application.OpenForms["UrunBul"] as Model.UrunBul; crUrun cr = new crUrun(); var src = (from s in db.bgUrunGirisleri select s).ToList(); if (src != null) { Fonksiyonlar.PrintYardim ch = new Fonksiyonlar.PrintYardim(); DataTable dt = ch.ConvertTo(src); cr.SetDataSource(dt); crFirma.ReportSource = cr; } }
public int UrunBul(bool secim = false) { Model.UrunBul bul = new Model.UrunBul(); if (secim == true) { bul.Secim = true; //bul.btnAktar.Enabled = true; bul.ShowDialog(); } else { bul.MdiParent = Form.ActiveForm; bul.WindowState = FormWindowState.Maximized; // bul.btnAktar.Enabled = false; bul.Show(); } return(frmAnaSayfa.AktarmaI); }