ai_office_plugin/AIProofread/Controls/ProofreadMainControl.cs
2024-04-09 23:13:45 +08:00

30 lines
694 B
C#

using Microsoft.Web.WebView2.Core;
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;
namespace AIProofread.Controls
{
public partial class ProofreadMainControl : UserControl
{
public ProofreadMainControl()
{
InitializeComponent();
Bridge.InitWebEnvAsync("main", web);
}
private void ProofreadMainControl_Load(object sender, EventArgs e)
{
this.web.Source = new Uri(Config.WebPath("#home?version=" + Config.APP_VERSION));
}
}
}