/// <summary>
        ///     预览全部
        ///     <param name="sender">调用对象</param>
        ///     <param name="e">参数信息</param>
        /// </summary>
        //--------------------------------------------------------------------------
        //修改历史:
        //日期      修改人     修改
        //2010-8-3  qizhenguo  创建代码
        //--------------------------------------------------------------------------
        private void PrintPreViewAll_Click(object sender, RoutedEventArgs e)
        {
            List <string> list = null;

            //预览多批次图像
            if (AggregativeType == AggregativeType.MultiBatch)
            {
                list = FilePathList;
            }
            //预览缩略图图像
            else
            {
                list = Thumbnail.GetSelectedItemFileName(ItemNameType.AllItem);
            }

            if ((list == null) || (list.Count == 0))
            {
                return;
            }
            else
            {
                PrintControl printCtl = PrintControl.GetSingleObject();
                printCtl.Preview(list);
            }
        }
 // 获得本类的单例
 public static PrintControl GetSingleObject()
 {
     lock (m_lock)
     {
         if (singleObj == null)
         {
             singleObj = new PrintControl();
         }
     }
     return(singleObj);
 }
        /// <summary>
        ///     打印设置
        ///     <param name="sender">调用对象</param>
        ///     <param name="e">参数信息</param>
        /// </summary>
        //--------------------------------------------------------------------------
        //修改历史:
        //日期      修改人     修改
        //2010-8-3  qizhenguo  创建代码
        //--------------------------------------------------------------------------
        private void PrintSetup_Click(object sender, RoutedEventArgs e)
        {
            PrintControl printCtl = PrintControl.GetSingleObject();

            printCtl.PageSetup();
        }
        /// <summary>
        ///     预览图片
        ///     <param name="sender">调用对象</param>
        ///     <param name="e">参数信息</param>
        /// </summary>
        //--------------------------------------------------------------------------
        //修改历史:
        //日期      修改人     修改
        //2010-8-3  qizhenguo  创建代码
        //--------------------------------------------------------------------------
        private void PrintPreView_Click(object sender, RoutedEventArgs e)
        {
            PrintControl printCtl = PrintControl.GetSingleObject();

            printCtl.Preview(SelectedImageName);
        }