2025-03-18 21:01:15 +08:00
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
|
using Serein.Library;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.Workbench.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
|
2025-05-27 18:32:40 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 依赖信息
|
|
|
|
|
|
/// </summary>
|
2025-03-18 21:01:15 +08:00
|
|
|
|
internal partial class FlowLibraryInfo : ObservableObject
|
|
|
|
|
|
{
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
|
private string _filePath;
|
|
|
|
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
|
private string _libraryName;
|
|
|
|
|
|
|
|
|
|
|
|
[ObservableProperty]
|
2025-05-27 18:32:40 +08:00
|
|
|
|
private ObservableCollection<MethodDetailsInfo> _methodInfo;
|
2025-03-18 21:01:15 +08:00
|
|
|
|
|
2025-05-27 18:32:40 +08:00
|
|
|
|
public List<MethodDetailsInfo> ActionNodes { get => MethodInfo.Where(x => x.NodeType == NodeType.Action.ToString()).ToList(); set { } }
|
|
|
|
|
|
public List<MethodDetailsInfo> FlipflopNodes { get => MethodInfo.Where(x => x.NodeType == NodeType.Flipflop.ToString()).ToList(); set { } }
|
|
|
|
|
|
public List<MethodDetailsInfo> UINodes { get => MethodInfo.Where(x => x.NodeType == NodeType.UI.ToString()).ToList(); set { } }
|
2025-03-18 21:01:15 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|