private void btnprint_Click(object sender, EventArgs e) { if (txtcode.Text == string.Empty || txtacode.Text == string.Empty) { MessageBox.Show("برجاء ادخال كود الطالب,رقم ايصال سداد الطالب ", "تغيير النظام الدراسى", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } else { BL.CLS_Testimonies t1 = new BL.CLS_Testimonies(); t1.add_Testimonies(txtt1.Text, int.Parse(txtid.Text), txtname.Text); MessageBox.Show("تم الاضافة بنجاح والان تتم عملية طباعة ورقة تغيير النظام الدراسى ", "تغيير النظام الدراسى", MessageBoxButtons.OK, MessageBoxIcon.Information); RPT.rpt_testimonies3 t = new RPT.rpt_testimonies3(); TextObject text1 = (TextObject)t.ReportDefinition.Sections["Section3"].ReportObjects["txtccode"]; text1.Text = txtacode.Text; TextObject text2 = (TextObject)t.ReportDefinition.Sections["Section3"].ReportObjects["txtsem"]; text2.Text = combotype.Text; t.SetParameterValue("@code", txtcode.Text); PL.testimonies3 ll = new PL.testimonies3(); ll.crystalReportViewer1.ReportSource = t; ll.ShowDialog(); } }
private void metroButton4_Click(object sender, EventArgs e) { PL.testimonies3 testimonies3 = new PL.testimonies3(); testimonies3.ShowDialog(); }
private void تغييرنظامالجدولToolStripMenuItem_Click(object sender, EventArgs e) { PL.testimonies3 testimonies3 = new PL.testimonies3(); testimonies3.ShowDialog(); }