Exemple #1
0
        public static void DownLoad(string pdfpath, string pdfname, string typename, string title)
        {
            string configer = ConfigerHelper.GetConfiger(new ConfigerParameterName().Resource);

            pdfpath = string.Format(@"{0}\{1}", configer, pdfpath);
            switch (DownLoadUtils.DownloadPDF(pdfpath, pdfname, typename, title))
            {
            case SystemEnum.DownloadType.ERROR:
                OpenWindows.Prompt(MESSAGE.DownLoadError);
                break;

            case SystemEnum.DownloadType.SUCCESS:
                OpenWindows.Prompt(MESSAGE.DownLoadSuccess);
                break;
            }
        }
Exemple #2
0
 public bool BindFullImages()
 {
     try
     {
         this.wait.Visibility = Visibility.Visible;
         this.Up.Visibility   = Visibility.Hidden;
         this.Down.Visibility = Visibility.Hidden;
         this.scrollviewer.ScrollToHome();
         string str = this.IMGPath[this.page];
         if (string.IsNullOrEmpty(str))
         {
             return(true);
         }
         this.pdf.Source = new BitmapImage(new Uri(string.Format(@"{0}\{1}", ConfigerHelper.GetConfiger(new ConfigerParameterName().Resource), str)));
     }
     catch
     {
         this.wait.Content = "打开全文失败,请稍候重试。";
         return(false);
     }
     return(true);
 }
Exemple #3
0
 private void _Loaded(object sender, RoutedEventArgs e)
 {
     char[]   trimChars = new char[] { ';' };
     char[]   separator = new char[] { ';' };
     string[] strArray  = this.ImageList.TrimEnd(trimChars).Split(separator);
     if ((strArray != null) && (strArray.Length > 0))
     {
         string configer = ConfigerHelper.GetConfiger(new ConfigerParameterName().Resource);
         int    num      = 0;
         foreach (string str2 in strArray)
         {
             if (!string.IsNullOrEmpty(str2))
             {
                 this.List.RowDefinitions.Add(new RowDefinition());
                 Image element = new Image {
                     Source = new BitmapImage(new Uri(string.Format(@"{0}\{1}", configer, str2)))
                 };
                 this.List.Children.Add(element);
                 Grid.SetRow(element, num);
                 num++;
             }
         }
     }
 }