private void btnprint_Click(object sender, EventArgs e) { if (txtcode.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_testimonies4 t = new RPT.rpt_testimonies4(); TextObject text3 = (TextObject)t.ReportDefinition.Sections["Section3"].ReportObjects["txtcc"]; text3.Text = txtacode.Text; TextObject text2 = (TextObject)t.ReportDefinition.Sections["Section3"].ReportObjects["txtsem"]; text2.Text = cmbsem.Text; t.SetParameterValue("@code", txtcode.Text); PL.Testimonies4 ll = new PL.Testimonies4(); ll.crystalReportViewer1.ReportSource = t; ll.ShowDialog(); txtcode.Focus(); } }
private void metroButton3_Click(object sender, EventArgs e) { PL.Testimonies4 testimonies4 = new PL.Testimonies4(); testimonies4.ShowDialog(); }
private void تأجيلToolStripMenuItem_Click(object sender, EventArgs e) { PL.Testimonies4 testimonies4 = new PL.Testimonies4(); testimonies4.ShowDialog(); }