private void btnprint_Click(object sender, EventArgs e) { if (txtcode.Text == string.Empty || txtm.Text == string.Empty || txtyear.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); // Testimonies1 tt = new Testimonies1(); RPT.rpt_testimonies5 t = new RPT.rpt_testimonies5(); TextObject text1 = (TextObject)t.ReportDefinition.Sections["Section2"].ReportObjects["txtmm"]; text1.Text = txtm.Text; TextObject text2 = (TextObject)t.ReportDefinition.Sections["Section2"].ReportObjects["txty"]; text2.Text = txtyear.Text; t.SetParameterValue("@code", txtcode.Text); PL.testimonies5 ll = new PL.testimonies5(); ll.crystalReportViewer1.ReportSource = t; ll.ShowDialog(); txtcode.Focus(); } }
private void metroButton5_Click(object sender, EventArgs e) { PL.testimonies5 testimonies4 = new PL.testimonies5(); testimonies4.ShowDialog(); }
private void مواعيداختباراتالمجندينToolStripMenuItem_Click(object sender, EventArgs e) { PL.testimonies5 testimonies5 = new PL.testimonies5(); testimonies5.ShowDialog(); }