节点导入完成

This commit is contained in:
艾竹
2023-04-02 21:47:55 +08:00
parent 0701f25519
commit 7835b422ff
20 changed files with 765 additions and 119 deletions

View File

@@ -17,7 +17,7 @@ namespace AIStudio.Wpf.Flowchart
{
public FlowchartViewModel(string title, string status, DiagramType diagramType) : base(title, status, diagramType)
{
Init();
}
public FlowchartViewModel(string filename, DiagramDocument diagramDocument) : base(filename, diagramDocument)
{

View File

@@ -13,7 +13,7 @@ namespace AIStudio.Wpf.Logical
{
public LogicalViewModel(string title, string status, DiagramType diagramType) : base(title, status, diagramType)
{
Init();
}
public LogicalViewModel(string filename, DiagramDocument diagramDocument) : base(filename, diagramDocument)
{

View File

@@ -23,6 +23,7 @@ namespace AIStudio.Wpf.Flowchart
public MindViewModel(string title, string status, DiagramType diagramType, MindType mindType) : base(title, status, diagramType)
{
MindType = mindType;
Init();
}
public MindViewModel(string filename, DiagramDocument diagramDocument) : base(filename, diagramDocument)
{

View File

@@ -32,8 +32,6 @@ namespace AIStudio.Wpf.DiagramApp.ViewModels
Title = title;
Status = status;
DiagramType = diagramType;
Init();
}
public PageViewModel(string filename)
{

View File

@@ -20,8 +20,9 @@ namespace AIStudio.Wpf.Flowchart
{
public SFCViewModel(string title, string status, DiagramType diagramType) : base(title, status, diagramType)
{
Init();
}
public SFCViewModel(string filename, DiagramDocument diagramDocument) : base(filename, diagramDocument)
{
if (DiagramViewModel != null)