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