mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
51 lines
1.1 KiB
C#
51 lines
1.1 KiB
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Newtonsoft.Json.Linq;
|
|
using Serein.Workbench.ViewModels;
|
|
using Serein.Workbench.Views;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Xml.Linq;
|
|
|
|
namespace Serein.Workbench.Models
|
|
{
|
|
public partial class FlowCanvasModel : ObservableObject
|
|
{
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
|
|
var vm = (FlowCanvasViewModel)content.DataContext;
|
|
return vm.Name;
|
|
}
|
|
set
|
|
{
|
|
var vm = (FlowCanvasViewModel)content.DataContext;
|
|
vm.Name = value;
|
|
OnPropertyChanged(nameof(Name));
|
|
}
|
|
}
|
|
|
|
[ObservableProperty]
|
|
private bool _isSelected;
|
|
[ObservableProperty]
|
|
private bool _isEditing;
|
|
[ObservableProperty]
|
|
private FlowCanvasView content;
|
|
|
|
|
|
public FlowCanvasModel()
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|