mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-05 09:10:52 +08:00
@@ -1,51 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AIStudio.Wpf.DiagramDesigner.Models;
|
||||
|
||||
namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
public class BlockContainListDesignerItemViewModel : BlockDesignerItemViewModel
|
||||
{
|
||||
public BlockContainListDesignerItemViewModel()
|
||||
{
|
||||
}
|
||||
|
||||
public BlockContainListDesignerItemViewModel(IDiagramViewModel root) : base(root)
|
||||
{
|
||||
}
|
||||
|
||||
public BlockContainListDesignerItemViewModel(IDiagramViewModel root, SelectableItemBase designer) : base(root, designer)
|
||||
{
|
||||
}
|
||||
|
||||
public BlockContainListDesignerItemViewModel(IDiagramViewModel root, SerializableItem serializableItem, string serializableType) : base(root, serializableItem, serializableType)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void InitNew()
|
||||
{
|
||||
base.InitNew();
|
||||
|
||||
Contains.Add(new ItemsContainerInfo(this.Root, this));
|
||||
}
|
||||
|
||||
public override void AddChild(BlockDesignerItemViewModel child)
|
||||
{
|
||||
Root.Items.Remove(child);
|
||||
FirstContain.Children.Add(child);
|
||||
|
||||
base.AddChild(child);
|
||||
}
|
||||
|
||||
public override void RemoveChild(BlockDesignerItemViewModel child)
|
||||
{
|
||||
Root.Items.Add(child);
|
||||
FirstContain.Children.Remove(child);
|
||||
|
||||
base.RemoveChild(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user