41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Plugin.Cowain.Wcs.Models.Enum;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Plugin.Cowain.Wcs.ViewModels.ProcessGraph;
|
|
|
|
public partial class Connection6180ViewModel : ObservableObject
|
|
{
|
|
[ObservableProperty]
|
|
private bool _isSelected;
|
|
|
|
[ObservableProperty]
|
|
private ProcessFlow6180ViewModel _processFlow = new ProcessFlow6180ViewModel
|
|
{
|
|
Priority = 100,
|
|
FromStatus1 = StationStateEnum.RequestPick.ToString(),
|
|
FromStatus2 = StationStateEnum.RequestPick.ToString(),
|
|
ToStatus1 = StationStateEnum.RequestPlace.ToString(),
|
|
ToStatus2 = StationStateEnum.RequestPlace.ToString(),
|
|
};
|
|
|
|
public ConnectorViewModel Source { get; set; }
|
|
public ConnectorViewModel Target { get; set; }
|
|
|
|
|
|
|
|
public Connection6180ViewModel(ConnectorViewModel source, ConnectorViewModel target)
|
|
{
|
|
Source = source;
|
|
Target = target;
|
|
Source.IsConnected = true;
|
|
Target.IsConnected = true;
|
|
}
|
|
|
|
|
|
}
|