检测面板是否已经创建
This commit is contained in:
parent
5e4f692897
commit
fa62b66a02
Binary file not shown.
@ -106,6 +106,10 @@ namespace AIProofread.Model
|
||||
{
|
||||
TaskPane.Visible = PaneVisible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
CreateTaskPane();
|
||||
}
|
||||
}
|
||||
|
||||
public void RunInMainThread(Action action)
|
||||
@ -114,6 +118,10 @@ namespace AIProofread.Model
|
||||
{
|
||||
TaskPane.Control.BeginInvoke(action);
|
||||
}
|
||||
else
|
||||
{
|
||||
CreateTaskPane();
|
||||
}
|
||||
}
|
||||
|
||||
public void ShowDialog(string message, string confirmText, string confirmAction)
|
||||
@ -1035,7 +1043,7 @@ namespace AIProofread.Model
|
||||
return dic;
|
||||
}
|
||||
|
||||
internal void CheckPanel()
|
||||
public void CheckPanel()
|
||||
{
|
||||
LogHelper.Log(CurrentDocument.FullName + $" TaskPane visible {PaneVisible} has " + (TaskPane == null ? "null" : "exists"));
|
||||
if (TaskPane == null) CreateTaskPane();
|
||||
|
134
AIProofread/Ribbon1.Designer.cs
generated
134
AIProofread/Ribbon1.Designer.cs
generated
@ -41,13 +41,6 @@ namespace AIProofread
|
||||
Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItemImpl3 = this.Factory.CreateRibbonDropDownItem();
|
||||
this.tabAIProofread = 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();
|
||||
@ -60,14 +53,20 @@ namespace AIProofread
|
||||
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 +75,7 @@ namespace AIProofread
|
||||
this.BtnOpenAppDir = this.Factory.CreateRibbonButton();
|
||||
this.BtnShowVersion = this.Factory.CreateRibbonButton();
|
||||
this.button2 = this.Factory.CreateRibbonButton();
|
||||
this.dropDown1 = this.Factory.CreateRibbonDropDown();
|
||||
this.tabAIProofread.SuspendLayout();
|
||||
this.group1.SuspendLayout();
|
||||
this.Group.SuspendLayout();
|
||||
@ -106,66 +106,6 @@ namespace AIProofread
|
||||
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.BtnOpenLogger);
|
||||
this.grpDebug.Items.Add(this.BtnTest);
|
||||
this.grpDebug.Items.Add(this.BtnOpenAppDir);
|
||||
this.grpDebug.Items.Add(this.BtnShowVersion);
|
||||
this.grpDebug.Items.Add(this.button2);
|
||||
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;
|
||||
@ -270,6 +210,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 +234,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 +281,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 +317,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.BtnOpenLogger);
|
||||
this.grpDebug.Items.Add(this.BtnTest);
|
||||
this.grpDebug.Items.Add(this.BtnOpenAppDir);
|
||||
this.grpDebug.Items.Add(this.BtnShowVersion);
|
||||
this.grpDebug.Items.Add(this.button2);
|
||||
this.grpDebug.Items.Add(this.dropDown1);
|
||||
this.grpDebug.Label = "开发调试";
|
||||
this.grpDebug.Name = "grpDebug";
|
||||
this.grpDebug.Visible = false;
|
||||
//
|
||||
// btnShowPane
|
||||
//
|
||||
this.btnShowPane.Label = "显示面板";
|
||||
@ -391,6 +380,17 @@ namespace AIProofread
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.button2_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";
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
6ff77d6c12210febf10f5ae1faf45dfc8ef42d08e43da0240ffa9d92fbefb595
|
||||
929ddb904bc44ec29047ef594f7522c7d07da74ec9e1e0fee604f0735e8c62cf
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user