private void tsm_products_Click(object sender, EventArgs e) { Reports.RepostView frm = new Reports.RepostView(); Reports.ProductsReport rep = new Reports.ProductsReport(); frm.rep_veiw.DocumentSource = rep; frm.ShowDialog(); }
private void btn_ok_Click(object sender, EventArgs e) { if (search == "order") { Reports.RepostView frm = new Reports.RepostView(); Reports.OrderReport rep = new Reports.OrderReport(); frm.rep_veiw.DocumentSource = rep; rep.Parameters["parameter1"].Value = txt_search.Text; frm.ShowDialog(); } else if (search == "request") { Reports.RepostView frm = new Reports.RepostView(); Reports.RequestReport rep = new Reports.RequestReport(); frm.rep_veiw.DocumentSource = rep; rep.Parameters["parameter1"].Value = txt_search.Text; frm.ShowDialog(); } else if (search == "re_order") { Reports.RepostView frm = new Reports.RepostView(); Reports.ReOrderReport rep = new Reports.ReOrderReport(); frm.rep_veiw.DocumentSource = rep; rep.Parameters["parameter1"].Value = txt_search.Text; frm.ShowDialog(); } else if (search == "re_request") { Reports.RepostView frm = new Reports.RepostView(); Reports.ReRequestReport rep = new Reports.ReRequestReport(); frm.rep_veiw.DocumentSource = rep; rep.Parameters["parameter1"].Value = txt_search.Text; frm.ShowDialog(); } this.Close(); }