Exemplo n.º 1
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     try
     {
         Reports.AppointmentReport c = new WIN.SCHEDULING_APP.GUI.Reports.AppointmentReport();
         ArrayList l = new ArrayList();
         l.Add(CreateApp());
         c.DataSource = l;
         c.ShowPreviewDialog();
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }
Exemplo n.º 2
0
        public override void Print()
        {
            try
            {
                ArrayList l = GetVisibleRecords();

                if (l.Count > 0)
                {
                    Reports.AppointmentReport c = new WIN.SCHEDULING_APP.GUI.Reports.AppointmentReport();
                    c.DataSource = l;
                    c.ShowPreviewDialog();
                }
            }
            catch (Exception ex)
            {
                ErrorHandler.Show(ex);
            }
        }