Beispiel #1
0
        private void navBarItemMemberReport_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.XtraReportMemberInfo(form.memberID);
                report.CreateDocument();
                documentViewer1.DocumentSource = report;
            }
        }
Beispiel #2
0
 private void navBarItemMemberReport_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.XtraReportMemberInfo(form.memberID);
             report.CreateDocument();
             documentViewer1.DocumentSource = report;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(MiscStuff.GetAllMessages(ex));
     }
 }