old_flsystem/FLSystem/Forms/show_word.cs

38 lines
900 B
C#
Raw Permalink Normal View History

2022-09-20 03:10:29 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using UI.Framework.Forms;
namespace FLSystem.Forms
{
public partial class show_word : BaseForm
{
public show_word(string fileName)
{
InitializeComponent();
this.filename = fileName;
}
private string filename;
private void show_word_Load(object sender, EventArgs e)
{
try
{
var result = this.richEditControl1.LoadDocument(filename);
if (!result) throw new Exception("加载文档失败!");
}
catch (Exception ex)
{
ShowError(ex);
this.Close();
}
}
}
}