Esempio n. 1
0
        private void navBarItemDebitCredit_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            DialogResult dr   = new DialogResult();
            var          form = new FormMemberSelect();

            dr = form.ShowDialog();
            if (dr == DialogResult.OK)
            {
                var report = new XtraReports.XtraReportDebitCredit(form.memberID);
                report.CreateDocument();
                documentViewer1.DocumentSource = report;
            }
        }
Esempio n. 2
0
 private void navBarItemDebitCredit_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     try
     {
         DialogResult dr   = new DialogResult();
         var          form = new FormMemberSelect();
         dr = form.ShowDialog();
         if (dr == DialogResult.OK)
         {
             var report = new XtraReports.XtraReportDebitCredit(form.memberID);
             report.CreateDocument();
             documentViewer1.DocumentSource = report;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(MiscStuff.GetAllMessages(ex));
     }
 }