Example #1
0
 private void printToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (BonafideCertificate cer = new BonafideCertificate(string.Format("{0}", staff_first_name.Text + " " + staff_middle_name.Text + " " + staff_last_name.Text), string.Format("{0}", enrollment_date.Text), string.Format("{0}", contract_termination.Text)))
     {
         cer.ShowDialog();
     }
 }
Example #2
0
        private void BonafideCertificate_Click(object sender, EventArgs e)
        {
            string DateInWords = WrittenNumerics.DateToWritten(Convert.ToDateTime(student_DOB.Text));

            using (BonafideCertificate cer = new BonafideCertificate(string.Format("{0}", student_id.Text), DateTime.Now.ToString("dd MMMM yyyy"), string.Format("{0}", student_first_name.Text + " " + student_middle_name.Text + " " + student_last_name.Text), string.Format("{0}", student_std.Text), string.Format("{0}", student_DOB.Text), string.Format("{0}", DateInWords), string.Format("{0}", student_birthplace.Text), string.Format("{0}", religion.Text), string.Format("{0}", caste.Text), string.Format("{0}", category.Text)))
            {
                cer.ShowDialog();
            }
        }