private void LoadDocument()
 {
     Destroy();
     if (this.DealFile(System.IO.Path.GetFileNameWithoutExtension(files[CurrentFile]) + ".xps"))
     {
         dp = new DocumentPage(config.GetValue("localpath", typeof(string)).ToString() + System.IO.Path.GetFileNameWithoutExtension(files[CurrentFile]) + ".xps");
         dp.AdjustView();
         this.PageContext.Content = dp;
     }
     else
     {
         System.Windows.MessageBox.Show("加载文件失败!");
     }
 }