mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-20 00:16:36 +08:00
bug修复
This commit is contained in:
@@ -20,10 +20,9 @@ namespace AIStudio.Wpf.Flowchart
|
||||
{
|
||||
public class MindViewModel : PageViewModel
|
||||
{
|
||||
public MindViewModel(string title, string status, DiagramType diagramType, MindType mindType) : base(title, status, diagramType)
|
||||
public MindViewModel(string title, string status, DiagramType diagramType, MindType mindType) : base(title, status, diagramType, mindType.ToString())
|
||||
{
|
||||
MindType = mindType;
|
||||
Init(true);
|
||||
|
||||
}
|
||||
public MindViewModel(string filename, DiagramDocument diagramDocument) : base(filename, diagramDocument)
|
||||
{
|
||||
@@ -34,7 +33,7 @@ namespace AIStudio.Wpf.Flowchart
|
||||
|
||||
if (MindDiagramViewModel != null)
|
||||
{
|
||||
MindType = MindDiagramViewModel.MindType;
|
||||
SubType = MindDiagramViewModel.MindType.ToString();
|
||||
MindTheme = MindDiagramViewModel.MindTheme;
|
||||
}
|
||||
}
|
||||
@@ -58,7 +57,10 @@ namespace AIStudio.Wpf.Flowchart
|
||||
|
||||
public MindType MindType
|
||||
{
|
||||
get;
|
||||
get
|
||||
{
|
||||
return SubType.ToEnum<MindType>();
|
||||
}
|
||||
}
|
||||
|
||||
public MindTheme MindTheme
|
||||
|
||||
Reference in New Issue
Block a user