mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-05 17:20:50 +08:00
block
This commit is contained in:
@@ -245,9 +245,33 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
return next;
|
||||
}
|
||||
|
||||
public List<BlockItemsContainerInfo> GetAllContain()
|
||||
public void AddContainer(BlockItemsContainerInfo container)
|
||||
{
|
||||
return Containers.SelectMany(p => p.GetAllContain(p.Children, true)).ToList();
|
||||
Containers.Add(container);
|
||||
RaisePropertyChanged(nameof(FirstContainer));
|
||||
RaisePropertyChanged(nameof(SecondContainer));
|
||||
RaisePropertyChanged(nameof(ThirdContainer));
|
||||
}
|
||||
|
||||
public void RemoveContainer(BlockItemsContainerInfo container)
|
||||
{
|
||||
Containers.Remove(container);
|
||||
RaisePropertyChanged(nameof(FirstContainer));
|
||||
RaisePropertyChanged(nameof(SecondContainer));
|
||||
RaisePropertyChanged(nameof(ThirdContainer));
|
||||
}
|
||||
|
||||
public void ClearContainers()
|
||||
{
|
||||
Containers.Clear();
|
||||
RaisePropertyChanged(nameof(FirstContainer));
|
||||
RaisePropertyChanged(nameof(SecondContainer));
|
||||
RaisePropertyChanged(nameof(ThirdContainer));
|
||||
}
|
||||
|
||||
public List<BlockItemsContainerInfo> GetAllContainers()
|
||||
{
|
||||
return Containers.SelectMany(p => p.GetAllContainers(p.Children, true)).ToList();
|
||||
}
|
||||
|
||||
public BlockDesignerItemViewModel GetRootContainItem
|
||||
|
||||
Reference in New Issue
Block a user