2022-11-30 19:07:40 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
2022-12-04 23:07:20 +08:00
|
|
|
|
using System.Windows;
|
2022-11-30 19:07:40 +08:00
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
|
using AIStudio.Wpf.DiagramDesigner;
|
|
|
|
|
|
using AIStudio.Wpf.DiagramDesigner.Helpers;
|
|
|
|
|
|
|
|
|
|
|
|
namespace AIStudio.Wpf.Flowchart.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
public class FlowchartToolBoxData : ToolBoxData
|
|
|
|
|
|
{
|
|
|
|
|
|
public NodeKinds Kind
|
|
|
|
|
|
{
|
|
|
|
|
|
get; set;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-12-04 23:07:20 +08:00
|
|
|
|
public FlowchartToolBoxData(NodeKinds kind, Type type, double width, double height, Size? desiredSize) : base(kind.GetDescription(), null, type, width, height, desiredSize)
|
2022-11-30 19:07:40 +08:00
|
|
|
|
{
|
|
|
|
|
|
Kind = kind;
|
|
|
|
|
|
ColorViewModel.LineColor.Color = Colors.Black;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|