/// <summary>
 /// 打开文件
 /// </summary>
 /// <param name="path">文件路径</param>
 public void Open(string path)
 {
     if (this.FileViewer == null)
     {
         return;
     }
     if (!this.IsDelayOpen)
     {
         this.FileViewer.Open(path);
     }
     else
     {
         FileViewerArgs args = new FileViewerArgs();
         args.Path       = path;
         args.Type       = FileViewerArgsType.Path;
         this.lastArgs   = args;
         this.IsDelaying = true;
         this.ResetTimer(false);
     }
     this.OpenArgs = path;
 }
 /// <summary>
 /// 打开文件
 /// </summary>
 /// <param name="buffer">文件Buffer</param>
 /// <param name="extension">要打开的文件扩展名</param>
 public void Open(byte[] buffer, string extension)
 {
     if (this.FileViewer == null)
     {
         return;
     }
     if (!this.IsDelayOpen)
     {
         this.FileViewer.Open(buffer, extension);
     }
     else
     {
         FileViewerArgs args = new FileViewerArgs();
         args.Buffer     = buffer;
         args.Extension  = extension;
         args.Type       = FileViewerArgsType.Buffer;
         this.lastArgs   = args;
         this.IsDelaying = true;
         this.ResetTimer(false);
     }
     this.OpenArgs = buffer;
 }
 /// <summary>
 /// 打开文件
 /// </summary>
 /// <param name="stream">文件流</param>
 /// <param name="extension">要打开的文件扩展名</param>
 public void Open(System.IO.Stream stream, string extension)
 {
     if (this.FileViewer == null)
     {
         return;
     }
     if (!this.IsDelayOpen)
     {
         this.FileViewer.Open(stream, extension);
     }
     else
     {
         FileViewerArgs args = new FileViewerArgs();
         args.Stream     = stream;
         args.Extension  = extension;
         args.Type       = FileViewerArgsType.Stream;
         this.lastArgs   = args;
         this.IsDelaying = true;
         this.ResetTimer(false);
     }
     this.OpenArgs = stream;
 }