コード例 #1
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         List <NssfContributionsDTO> _nssfcomputations = (List <NssfContributionsDTO>)bindingSourceNewNSSFComputation.List;
         PDFViewer _viewer = new PDFViewer(_nssfcomputations, _User, connection);
         _viewer.WindowState   = FormWindowState.Normal;
         _viewer.StartPosition = FormStartPosition.CenterScreen;
         _viewer.Show();
     }
     catch (Exception ex)
     {
         Utils.ShowError(ex);
     }
 }
コード例 #2
0
        public Tests()
        {
            Application.Init();

            Window window = new Window("GtkPdfSharp")
            {
                WindowPosition = WindowPosition.Center,
            };

            window.DestroyEvent += OnDestroy;
            window.Realized     += OnRealized;

            pdf = new PDFViewer();
            window.Add(pdf);
            pdf.Show();

            window.SetSizeRequest(1280, 1024);
            window.Show();
        }
コード例 #3
0
 public Form1()
 {
     rp = new ResponseToSignDocument();
     InitializeComponent();
     lbIdPrefeitura.Text       = rp.IdPrefeitura.ToString();
     lbNomePrefeitura.Text     = rp.NomePrefeitura;
     lbIdSecretaria.Text       = rp.IdSecretaria.ToString();
     lbNomeSecretaria.Text     = rp.NomeSecretaria;
     lbIdAssinante.Text        = rp.IdAssinante.ToString();
     lbNomeAssinante.Text      = rp.NomeAssinante;
     lbTipoPessoa.Text         = rp.TipoPessoa;
     lbDocumentoAssinante.Text = rp.DocumentoAssinante;
     lbDataNascimento.Text     = (rp.DataNascimento.HasValue ? rp.DataNascimento.Value.ToString("dd/MM/yyyy") : "Não disponível.");
     lbEmail.Text          = rp.Email;
     lbNumeroTelefone.Text = rp.Telefone;
     lbMD5Documento.Text   = rp.MD5Documento;
     PDFViewer.src         = rp.URLDocumento;
     PDFViewer.Show();
     rp.Cert = EscolherCertificado(rp);
 }
コード例 #4
0
        public Viewer() : base("GtkPdfViewer", ApplicationFlags.None)
        {
            Init();

            Window window = new Window("GtkPdfSharp")
            {
                WindowPosition = WindowPosition.Center,
            };

            window.DestroyEvent += OnDestroy;
            window.Realized     += OnRealized;

            pdf = new PDFViewer();
            window.Add(pdf);
            pdf.Show();

            window.SetSizeRequest(1280, 1024);
            window.Show();

            Run();
        }
コード例 #5
0
        private void viewPDFBTN_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            PDFViewer p = new PDFViewer(gridControl.GetFocusedRowCellValue("Location").ToString());

            p.Show();
        }