Пример #1
0
        private void navBarItemReportNote_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.XtraReportNotes(form.memberID);
                report.CreateDocument();
                documentViewer1.DocumentSource = report;
            }
        }
Пример #2
0
 private void navBarItemReportNote_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.XtraReportNotes(form.memberID);
             report.CreateDocument();
             documentViewer1.DocumentSource = report;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(MiscStuff.GetAllMessages(ex));
     }
 }