예제 #1
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            try
            {
                Reports.CustomerReport c = new WIN.SCHEDULING_APP.GUI.Reports.CustomerReport();
                ArrayList l = new ArrayList();

                l.Add(CreatEDummyCustomer());

                c.DataSource = l;
                c.ShowPreviewDialog();
            }
            catch (Exception ex)
            {
                ErrorHandler.Show(ex);
            }
        }
예제 #2
0
 public override void Print()
 {
     try
     {
         if (_current != null)
         {
             if (base.State.StateName == "Visualizzazione")
             {
                 Reports.CustomerReport c = new WIN.SCHEDULING_APP.GUI.Reports.CustomerReport();
                 ArrayList l = new ArrayList();
                 l.Add(_current);
                 c.DataSource = l;
                 c.ShowPreviewDialog();
             }
         }
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }