Exemple #1
0
        private void printBtn_Click(object sender, EventArgs e)
        {
            LetterOfRequestDialog dialog = new LetterOfRequestDialog();

            dialog.setSchoolName(searchByLastSchoolAttcb.Text);
            DialogResult result = dialog.ShowDialog();

            if (result.Equals(DialogResult.OK))
            {
                ReportViewer viewer = new ReportViewer();
                loadingScreen.Show();
                viewer.loadLetterOfRequest(Session.getInstance().SelectedCustomerList, dialog.schoolName,
                                           dialog.schoolAddress, dialog.attainment, dialog.schoolYear);
                loadingScreen.Hide();
                viewer.Show();
            }
        }
Exemple #2
0
        private void printBtn_Click(object sender, EventArgs e)
        {
            LetterOfRequestDialog dialog = new LetterOfRequestDialog();
            dialog.setSchoolName(searchByLastSchoolAttcb.Text);
            DialogResult result = dialog.ShowDialog();

            if (result.Equals(DialogResult.OK))
            {
                ReportViewer viewer = new ReportViewer();
                loadingScreen.Show();
                viewer.loadLetterOfRequest(Session.getInstance().SelectedCustomerList,dialog.schoolName,
                    dialog.schoolAddress,dialog.attainment, dialog.schoolYear);
                loadingScreen.Hide();
                viewer.Show();
            }
        }