Commit 537b3f33 by wangonghui

提交修改命令行bug

parent 285df8e3
......@@ -1217,6 +1217,8 @@ namespace VIZ.Package.Module
// 根据模板拷贝页
PageModel page = new PageModel();
page.PageID= Guid.NewGuid();
page.PageType = PageType.Command;
page.ConnGroupID = ApplicationDomainEx.ConnGroups.FirstOrDefault(p => p.IsDefault)?.GroupID ?? Guid.Empty;
page.PageGroupID = this.SelectedPageGroupModel.GroupID;
......
......@@ -58,6 +58,8 @@ namespace VIZ.Package.Module
private void InitMessage()
{
ApplicationDomainEx.MessageManager.Register<PageOpenMessage>(this, this.OnPageOpenMessage);
ApplicationDomainEx.MessageManager.Register<ProjectCloseMessage>(this,this.OnPageCloseMessage);
ApplicationDomainEx.MessageManager.Register<PageSaveMessage>(this, this.OnPageSaveMessage);
ApplicationDomainEx.MessageManager.Register<PageSaveAsMessage>(this, this.OnPageSaveAsMessage);
ApplicationDomainEx.MessageManager.Register<HotkeyMessage>(this, this.OnHotkeyMessage);
......@@ -245,6 +247,18 @@ namespace VIZ.Package.Module
this.TakeUpdateCommand = entity?.TakeUpdateCommand ?? string.Empty;
}
private void OnPageCloseMessage(ProjectCloseMessage msg)
{
TakeCommand = string.Empty;
this.TakeCommand = string.Empty;
this.TakeContinueCommand = string.Empty;
this.TakeOutCommand = string.Empty;
this.TakeUpdateCommand =string.Empty;
}
/// <summary>
/// 页保存消息
/// </summary>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment