public void Alis() { AlSat.frmAlis frm = new AlSat.frmAlis(); frm.MdiParent = Form.ActiveForm; frm.WindowState = FormWindowState.Maximized; frm.Show(); }
private void Alis() { AlSat.frmAlis als = Application.OpenForms["frmAlis"] as AlSat.frmAlis; pAlis cr = new pAlis(); var srg = (from s in _db.vwAlis where s.PurNo == int.Parse(als.txtAlisNo.Text) select s).ToList(); PrintYardim ch = new PrintYardim(); DataTable dt = ch.ConvertTo(srg); cr.SetDataSource(dt); crvPrint.ReportSource = cr; }