Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;
                RPT.WEB             myReport = new RPT.WEB();
                RPT.FRM_RPT_PRODUCT myForm   = new RPT.FRM_RPT_PRODUCT();

                myReport.SetParameterValue("@ID_ORDER", Convert.ToInt32(textBox1.Text));
                myForm.crystalReportViewer1.ReportSource = myReport;
                myForm.ShowDialog();
                this.Cursor = Cursors.Default;
                prd.DeleteProductWeb(Convert.ToInt32(textBox1.Text));
                this.dgvOrdersWeb.DataSource = prd.GetOrderDetailsWeb1();
            }
            catch {
                MessageBox.Show("قم بتحديد الفاتورة ", "تنبية", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.Cursor = Cursors.Default;
            }
        }