diff --git a/.vs/AIProofread/v17/.suo b/.vs/AIProofread/v17/.suo
index 2246d2b..1dc1541 100644
Binary files a/.vs/AIProofread/v17/.suo and b/.vs/AIProofread/v17/.suo differ
diff --git a/AIProofread/AIProofread.csproj b/AIProofread/AIProofread.csproj
index 51f404c..d5552f0 100644
--- a/AIProofread/AIProofread.csproj
+++ b/AIProofread/AIProofread.csproj
@@ -561,6 +561,8 @@
+
+
10.0
diff --git a/AIProofread/Config.cs b/AIProofread/Config.cs
index 2707722..a19722d 100644
--- a/AIProofread/Config.cs
+++ b/AIProofread/Config.cs
@@ -36,7 +36,7 @@ namespace AIProofread
public class Config
{
public static readonly string APP_NAME = "AI校对王(公告版)";
- public static readonly string APP_VERSION = "2.2.2";
+ public static readonly string APP_VERSION = "2.0.0";
public static bool IS_WPS = false;
public static bool UpgradeForcedNotice = false;
public static readonly string APP_BASE_DIR = AppDomain.CurrentDomain.BaseDirectory;
@@ -52,11 +52,11 @@ namespace AIProofread
///
/// 网页访问地址
///
- public static string WEB_PATH = AppServer.PROD; //pre-gm-plugin.gachafun.com localhost:5173 gm2-plugin.zverse.group
+ public static string WEB_PATH = AppServer.GM_FN; //pre-gm-plugin.gachafun.com localhost:5173 gm2-plugin.zverse.group
public static bool RUN_IN_DEBUG = true;
public static AppEnvironment APP_ENV = AppEnvironment.Dev;
#else
- public static string WEB_PATH = AppServer.PROD; // gm-plugin.gachafun.com pre-gm-plugin.gachafun.com
+ public static string WEB_PATH = AppServer.GM_FN; // gm-plugin.gachafun.com pre-gm-plugin.gachafun.com
public static bool RUN_IN_DEBUG = false;
public static AppEnvironment APP_ENV = AppEnvironment.Prod;
#endif
diff --git a/AIProofread/Controls/FormWebView.Designer.cs b/AIProofread/Controls/FormWebView.Designer.cs
index fb8159f..9802b30 100644
--- a/AIProofread/Controls/FormWebView.Designer.cs
+++ b/AIProofread/Controls/FormWebView.Designer.cs
@@ -52,7 +52,7 @@
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.WebView);
this.Name = "FormWebView";
- this.Text = "FormWebView";
+ this.ShowIcon = false;
this.Load += new System.EventHandler(this.FormWebView_Load);
((System.ComponentModel.ISupportInitialize)(this.WebView)).EndInit();
this.ResumeLayout(false);
diff --git a/AIProofread/Controls/FormWebView.cs b/AIProofread/Controls/FormWebView.cs
index 0716a75..4a970a2 100644
--- a/AIProofread/Controls/FormWebView.cs
+++ b/AIProofread/Controls/FormWebView.cs
@@ -21,7 +21,14 @@ namespace AIProofread.Controls
InitializeComponent();
this.WebUrl = url;
this.SetSize(width, height);
+ this.StartPosition = FormStartPosition.CenterScreen;
}
+
+ public void SetTitle(string title)
+ {
+ this.Text = title;
+ }
+
public void SetSize(int width, int height)
{
this.Width = width;
diff --git a/AIProofread/Properties/Resources.Designer.cs b/AIProofread/Properties/Resources.Designer.cs
index aad8863..5e58b53 100644
--- a/AIProofread/Properties/Resources.Designer.cs
+++ b/AIProofread/Properties/Resources.Designer.cs
@@ -370,6 +370,26 @@ namespace AIProofread.Properties {
}
}
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap icon_stock {
+ get {
+ object obj = ResourceManager.GetObject("icon-stock", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
+ internal static System.Drawing.Bitmap icon_stock_wps {
+ get {
+ object obj = ResourceManager.GetObject("icon-stock-wps", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
///
diff --git a/AIProofread/Properties/Resources.resx b/AIProofread/Properties/Resources.resx
index b8833c2..de219c3 100644
--- a/AIProofread/Properties/Resources.resx
+++ b/AIProofread/Properties/Resources.resx
@@ -136,9 +136,6 @@
..\Resources\icon-history.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\icon-proofread.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
..\Resources\icon-phone.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -160,6 +157,9 @@
..\Resources\icon-update-wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\icon-manual.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\icon-setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -187,8 +187,11 @@
..\Resources\icon-refresh-wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\icon-export.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\icon-clear.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\icon-manual-wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\button_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -202,14 +205,14 @@
..\Resources\logo_no_text.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\icon-ai-robot.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\logo_no_text_wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\logo_wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\icon-clear.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\icon-export.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\icon-phone-wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -217,8 +220,11 @@
..\Resources\icon-history-wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\logo_no_text_wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\icon-panel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\icon-ai-robot.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\icon-logout.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -226,13 +232,13 @@
..\Resources\icon_close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\icon-panel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\icon-proofread.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\icon-manual.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\icon-stock-wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\icon-manual-wps.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\icon-stock.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/AIProofread/Resources/icon-stock-wps.jpg b/AIProofread/Resources/icon-stock-wps.jpg
new file mode 100644
index 0000000..ceed049
Binary files /dev/null and b/AIProofread/Resources/icon-stock-wps.jpg differ
diff --git a/AIProofread/Resources/icon-stock.png b/AIProofread/Resources/icon-stock.png
new file mode 100644
index 0000000..9d22f39
Binary files /dev/null and b/AIProofread/Resources/icon-stock.png differ
diff --git a/AIProofread/Ribbon1.Designer.cs b/AIProofread/Ribbon1.Designer.cs
index b18a341..f441b1d 100644
--- a/AIProofread/Ribbon1.Designer.cs
+++ b/AIProofread/Ribbon1.Designer.cs
@@ -41,13 +41,6 @@ namespace AIProofread
Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItemImpl3 = this.Factory.CreateRibbonDropDownItem();
this.tabAIProofreadAnno = this.Factory.CreateRibbonTab();
this.group1 = this.Factory.CreateRibbonGroup();
- this.Group = this.Factory.CreateRibbonGroup();
- this.grpOther = this.Factory.CreateRibbonGroup();
- this.LblDate = this.Factory.CreateRibbonLabel();
- this.LblNickname = this.Factory.CreateRibbonLabel();
- this.group2 = this.Factory.CreateRibbonGroup();
- this.grpDebug = this.Factory.CreateRibbonGroup();
- this.dropDown1 = this.Factory.CreateRibbonDropDown();
this.BtnProofreadAll = this.Factory.CreateRibbonButton();
this.menuProofreadList = this.Factory.CreateRibbonMenu();
this.BtnProofreadExact = this.Factory.CreateRibbonButton();
@@ -55,19 +48,26 @@ namespace AIProofread
this.BtnExportProofreadResult = this.Factory.CreateRibbonButton();
this.btnClear = this.Factory.CreateRibbonButton();
this.btnOpenLexicon = this.Factory.CreateRibbonButton();
+ this.BtnQueryStock = this.Factory.CreateRibbonButton();
this.menuSencenDect = this.Factory.CreateRibbonMenu();
this.btnDetectionAll = this.Factory.CreateRibbonButton();
this.btnDetectionParagraph = this.Factory.CreateRibbonButton();
this.btnDetectionHistory = this.Factory.CreateRibbonButton();
this.btnSetting = this.Factory.CreateRibbonButton();
+ this.Group = this.Factory.CreateRibbonGroup();
this.ButtonSaveCache = this.Factory.CreateRibbonButton();
this.ButtonLoadCache = this.Factory.CreateRibbonButton();
+ this.grpOther = this.Factory.CreateRibbonGroup();
this.BtnGetContact = this.Factory.CreateRibbonButton();
this.BtnUpdate = this.Factory.CreateRibbonButton();
this.btnLogin = this.Factory.CreateRibbonButton();
this.btnLogout = this.Factory.CreateRibbonButton();
+ this.LblDate = this.Factory.CreateRibbonLabel();
+ this.LblNickname = this.Factory.CreateRibbonLabel();
+ this.group2 = this.Factory.CreateRibbonGroup();
this.BtnShowPanel = this.Factory.CreateRibbonButton();
this.BtnShowManual = this.Factory.CreateRibbonButton();
+ this.grpDebug = this.Factory.CreateRibbonGroup();
this.btnShowPane = this.Factory.CreateRibbonButton();
this.btnHidePane = this.Factory.CreateRibbonButton();
this.BtnOpenLog = this.Factory.CreateRibbonButton();
@@ -76,6 +76,7 @@ namespace AIProofread
this.BtnTest = this.Factory.CreateRibbonButton();
this.BtnOpenAppDir = this.Factory.CreateRibbonButton();
this.BtnShowVersion = this.Factory.CreateRibbonButton();
+ this.dropDown1 = this.Factory.CreateRibbonDropDown();
this.tabAIProofreadAnno.SuspendLayout();
this.group1.SuspendLayout();
this.Group.SuspendLayout();
@@ -102,70 +103,11 @@ namespace AIProofread
this.group1.Items.Add(this.BtnExportProofreadResult);
this.group1.Items.Add(this.btnClear);
this.group1.Items.Add(this.btnOpenLexicon);
+ this.group1.Items.Add(this.BtnQueryStock);
this.group1.Items.Add(this.menuSencenDect);
this.group1.Items.Add(this.btnSetting);
this.group1.Name = "group1";
//
- // Group
- //
- this.Group.Items.Add(this.ButtonSaveCache);
- this.Group.Items.Add(this.ButtonLoadCache);
- this.Group.Name = "Group";
- //
- // grpOther
- //
- this.grpOther.Items.Add(this.BtnGetContact);
- this.grpOther.Items.Add(this.BtnUpdate);
- this.grpOther.Items.Add(this.btnLogin);
- this.grpOther.Items.Add(this.btnLogout);
- this.grpOther.Items.Add(this.LblDate);
- this.grpOther.Items.Add(this.LblNickname);
- this.grpOther.Name = "grpOther";
- //
- // LblDate
- //
- this.LblDate.Label = "过期时间:";
- this.LblDate.Name = "LblDate";
- this.LblDate.Visible = false;
- //
- // LblNickname
- //
- this.LblNickname.Label = "xxx 已登录";
- this.LblNickname.Name = "LblNickname";
- this.LblNickname.Visible = false;
- //
- // group2
- //
- this.group2.Items.Add(this.BtnShowPanel);
- this.group2.Items.Add(this.BtnShowManual);
- this.group2.Name = "group2";
- //
- // grpDebug
- //
- this.grpDebug.Items.Add(this.btnShowPane);
- this.grpDebug.Items.Add(this.btnHidePane);
- this.grpDebug.Items.Add(this.BtnOpenLog);
- this.grpDebug.Items.Add(this.button1);
- this.grpDebug.Items.Add(this.BtnOpenLogger);
- this.grpDebug.Items.Add(this.BtnTest);
- this.grpDebug.Items.Add(this.BtnOpenAppDir);
- this.grpDebug.Items.Add(this.BtnShowVersion);
- this.grpDebug.Items.Add(this.dropDown1);
- this.grpDebug.Label = "开发调试";
- this.grpDebug.Name = "grpDebug";
- this.grpDebug.Visible = false;
- //
- // dropDown1
- //
- ribbonDropDownItemImpl1.Label = "开发";
- ribbonDropDownItemImpl2.Label = "测试";
- ribbonDropDownItemImpl3.Label = "生产";
- this.dropDown1.Items.Add(ribbonDropDownItemImpl1);
- this.dropDown1.Items.Add(ribbonDropDownItemImpl2);
- this.dropDown1.Items.Add(ribbonDropDownItemImpl3);
- this.dropDown1.Label = "环境";
- this.dropDown1.Name = "dropDown1";
- //
// BtnProofreadAll
//
this.BtnProofreadAll.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
@@ -228,6 +170,15 @@ namespace AIProofread
this.btnOpenLexicon.ShowImage = true;
this.btnOpenLexicon.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btnOpenLexicon_Click);
//
+ // BtnQueryStock
+ //
+ this.BtnQueryStock.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
+ this.BtnQueryStock.Image = global::AIProofread.Properties.Resources.icon_stock;
+ this.BtnQueryStock.Label = "交易权限速查\r\n";
+ this.BtnQueryStock.Name = "BtnQueryStock";
+ this.BtnQueryStock.ShowImage = true;
+ this.BtnQueryStock.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.BtnQueryStock_Click);
+ //
// menuSencenDect
//
this.menuSencenDect.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
@@ -238,6 +189,7 @@ namespace AIProofread
this.menuSencenDect.Label = "常识性检测\r\n";
this.menuSencenDect.Name = "menuSencenDect";
this.menuSencenDect.ShowImage = true;
+ this.menuSencenDect.Visible = false;
//
// btnDetectionAll
//
@@ -270,6 +222,12 @@ namespace AIProofread
this.btnSetting.ShowImage = true;
this.btnSetting.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btnSetting_Click);
//
+ // Group
+ //
+ this.Group.Items.Add(this.ButtonSaveCache);
+ this.Group.Items.Add(this.ButtonLoadCache);
+ this.Group.Name = "Group";
+ //
// ButtonSaveCache
//
this.ButtonSaveCache.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
@@ -288,6 +246,16 @@ namespace AIProofread
this.ButtonLoadCache.ShowImage = true;
this.ButtonLoadCache.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ButtonLoadCache_Click);
//
+ // grpOther
+ //
+ this.grpOther.Items.Add(this.BtnGetContact);
+ this.grpOther.Items.Add(this.BtnUpdate);
+ this.grpOther.Items.Add(this.btnLogin);
+ this.grpOther.Items.Add(this.btnLogout);
+ this.grpOther.Items.Add(this.LblDate);
+ this.grpOther.Items.Add(this.LblNickname);
+ this.grpOther.Name = "grpOther";
+ //
// BtnGetContact
//
this.BtnGetContact.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
@@ -325,6 +293,24 @@ namespace AIProofread
this.btnLogout.Visible = false;
this.btnLogout.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btnLogout_Click);
//
+ // LblDate
+ //
+ this.LblDate.Label = "过期时间:";
+ this.LblDate.Name = "LblDate";
+ this.LblDate.Visible = false;
+ //
+ // LblNickname
+ //
+ this.LblNickname.Label = "xxx 已登录";
+ this.LblNickname.Name = "LblNickname";
+ this.LblNickname.Visible = false;
+ //
+ // group2
+ //
+ this.group2.Items.Add(this.BtnShowPanel);
+ this.group2.Items.Add(this.BtnShowManual);
+ this.group2.Name = "group2";
+ //
// BtnShowPanel
//
this.BtnShowPanel.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
@@ -343,6 +329,21 @@ namespace AIProofread
this.BtnShowManual.ShowImage = true;
this.BtnShowManual.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.BtnShowManual_Click);
//
+ // grpDebug
+ //
+ this.grpDebug.Items.Add(this.btnShowPane);
+ this.grpDebug.Items.Add(this.btnHidePane);
+ this.grpDebug.Items.Add(this.BtnOpenLog);
+ this.grpDebug.Items.Add(this.button1);
+ this.grpDebug.Items.Add(this.BtnOpenLogger);
+ this.grpDebug.Items.Add(this.BtnTest);
+ this.grpDebug.Items.Add(this.BtnOpenAppDir);
+ this.grpDebug.Items.Add(this.BtnShowVersion);
+ this.grpDebug.Items.Add(this.dropDown1);
+ this.grpDebug.Label = "开发调试";
+ this.grpDebug.Name = "grpDebug";
+ this.grpDebug.Visible = false;
+ //
// btnShowPane
//
this.btnShowPane.Label = "显示面板";
@@ -391,6 +392,17 @@ namespace AIProofread
this.BtnShowVersion.Name = "BtnShowVersion";
this.BtnShowVersion.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.BtnShowVersion_Click);
//
+ // dropDown1
+ //
+ ribbonDropDownItemImpl1.Label = "开发";
+ ribbonDropDownItemImpl2.Label = "测试";
+ ribbonDropDownItemImpl3.Label = "生产";
+ this.dropDown1.Items.Add(ribbonDropDownItemImpl1);
+ this.dropDown1.Items.Add(ribbonDropDownItemImpl2);
+ this.dropDown1.Items.Add(ribbonDropDownItemImpl3);
+ this.dropDown1.Label = "环境";
+ this.dropDown1.Name = "dropDown1";
+ //
// Ribbon1
//
this.Name = "Ribbon1";
@@ -452,6 +464,7 @@ namespace AIProofread
internal Microsoft.Office.Tools.Ribbon.RibbonMenu menuProofreadList;
internal Microsoft.Office.Tools.Ribbon.RibbonButton BtnProofreadExact;
internal Microsoft.Office.Tools.Ribbon.RibbonButton BtnProofreadFull;
+ internal Microsoft.Office.Tools.Ribbon.RibbonButton BtnQueryStock;
}
partial class ThisRibbonCollection
diff --git a/AIProofread/Ribbon1.cs b/AIProofread/Ribbon1.cs
index 85174ef..2c0c4c2 100644
--- a/AIProofread/Ribbon1.cs
+++ b/AIProofread/Ribbon1.cs
@@ -81,24 +81,26 @@ namespace AIProofread
public void InitWPS()
{
- BtnProofreadAll.Image = AIProofread.Properties.Resources.icon_proofread_wps;
- menuProofreadList.Image = AIProofread.Properties.Resources.icon_proofread_wps;
- btnClear.Image = AIProofread.Properties.Resources.icon_clear_wps;
- btnOpenLexicon.Image = AIProofread.Properties.Resources.icon_book_wps;
- btnSetting.Image = AIProofread.Properties.Resources.icon_setting_wps;
- BtnGetContact.Image = AIProofread.Properties.Resources.icon_phone_wps;
- BtnUpdate.Image = AIProofread.Properties.Resources.icon_update_wps;
- btnLogin.Image = AIProofread.Properties.Resources.icon_user_wps;
- menuSencenDect.Image = AIProofread.Properties.Resources.icon_ai_robot_wps;
- btnLogout.Image = AIProofread.Properties.Resources.icon_logout_wps;
+ BtnProofreadAll.Image = Resources.icon_proofread_wps;
+ menuProofreadList.Image = Resources.icon_proofread_wps;
+ btnClear.Image = Resources.icon_clear_wps;
+ btnOpenLexicon.Image = Resources.icon_book_wps;
+ btnSetting.Image = Resources.icon_setting_wps;
+ BtnGetContact.Image = Resources.icon_phone_wps;
+ BtnUpdate.Image = Resources.icon_update_wps;
+ btnLogin.Image = Resources.icon_user_wps;
+ menuSencenDect.Image = Resources.icon_ai_robot_wps;
+ btnLogout.Image = Resources.icon_logout_wps;
// 缓存相关
- ButtonLoadCache.Image = AIProofread.Properties.Resources.icon_refresh_wps;
- ButtonSaveCache.Image = AIProofread.Properties.Resources.icon_save_wps;
+ ButtonLoadCache.Image = Resources.icon_refresh_wps;
+ ButtonSaveCache.Image = Resources.icon_save_wps;
// 显示面板
- BtnShowPanel.Image = AIProofread.Properties.Resources.icon_panel_wps;
+ BtnShowPanel.Image = Resources.icon_panel_wps;
// 导出校对结果
- BtnExportProofreadResult.Image = AIProofread.Properties.Resources.icon_export_wps;
- BtnShowManual.Image = AIProofread.Properties.Resources.icon_manual_wps;
+ BtnExportProofreadResult.Image = Resources.icon_export_wps;
+ BtnShowManual.Image = Resources.icon_manual_wps;
+ // 股市查询
+ BtnQueryStock.Image = Resources.icon_stock_wps;
}
public void ProcessLoginInfo(Userinfo userinfo)
@@ -639,5 +641,10 @@ namespace AIProofread
Globals.ThisAddIn.ActiveDocument.CheckPanel();
Globals.ThisAddIn.SendMessageToWeb("start", "full");
}
+
+ private void BtnQueryStock_Click(object sender, RibbonControlEventArgs e)
+ {
+ Globals.ThisAddIn.ShowStockQuery();
+ }
}
}
diff --git a/AIProofread/ThisAddIn.cs b/AIProofread/ThisAddIn.cs
index 4850380..448ac75 100644
--- a/AIProofread/ThisAddIn.cs
+++ b/AIProofread/ThisAddIn.cs
@@ -63,6 +63,7 @@ namespace AIProofread
/// 智能常识检测对话框 = new FormCommonsenseDetection()
///
public FormCommonsenseDetection formCommonsenseDetection;
+ public FormWebView fromStockQuery;
public bool IsWPS { get; set; }
public List LoginFormList = new List();
@@ -92,6 +93,21 @@ namespace AIProofread
formCommonsenseDetection.Close();
formCommonsenseDetection = null;
}
+ public void ShowStockQuery()
+ {
+ if (fromStockQuery == null || fromStockQuery.IsDisposed)
+ {
+ fromStockQuery = new FormWebView(Config.WebPath("stock-query"),500,400);
+ }
+ fromStockQuery.Show();
+ // 显示在最前面
+ fromStockQuery.Activate();
+ }
+ public void HideStockQuery()
+ {
+ fromStockQuery.Close();
+ fromStockQuery = null;
+ }
private void ProcessApplicationException(object sender, UnhandledExceptionEventArgs e)
{