예제 #1
0
 public override void Open()
 {
     if (ApplicationInstallHelper.IsWordInstalled())
     {
         Process.Start(this.FilePath);
     }
     else
     {
         FrmDocPreview docPre = new FrmDocPreview(this.FilePath);
         docPre.Show();
     }
 }
예제 #2
0
 public override void Open()
 {
     if (ApplicationInstallHelper.IsExcelInstalled())
     {
         Process.Start(this.FilePath);
     }
     else
     {
         FrmExcelPreview excelPre = new FrmExcelPreview(this.FilePath);
         excelPre.Show();
     }
 }