示例#1
0
        private void btnOpen_Click(object sender, EventArgs e)
        {
            OpenFileDialog file = new OpenFileDialog();

            file.Filter = "pdf files(*.pdf)|*.pdf|All files(*.*)|*.*";
            file.ShowDialog();
            string text = file.FileName;

            MoonPDF_DLL.MoonPDFLoad(new StringBuilder(text));
            //重绘界面
            MoonPDF_DLL.MoonResizePDF(pdfPanel.Width, pdfPanel.Height);
        }
示例#2
0
 //pdf显示窗口大小被重置
 private void pdfPanel_Resize(object sender, EventArgs e)
 {
     MoonPDF_DLL.MoonResizePDF(((Control)sender).Width, ((Control)sender).Height);
 }