using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows;
using System.Windows.Input;
namespace SHH.CameraDashboard
{
///
/// 客户端配置向导的 ViewModel
/// 实现了 接口,用于与父窗口的蒙板交互。
///
public class WizardClientsViewModel : INotifyPropertyChanged, IOverlayClosable
{
///
/// 绑定到 ListView 的数据源
///
public static ObservableCollection ServiceNodes
=> AppGlobal.ServiceNodes;
#region --- 业务数据属性 ---
private string _statusText = "准备就绪";
///
/// 获取或设置向导的当前状态文本。
///
public string StatusText
{
get => _statusText;
set { _statusText = value; OnPropertyChanged(); }
}
#endregion
#region --- 命令属性 ---
///
/// 获取用于确认操作的命令。
///
public ICommand ConfirmCommand { get; }
///
/// 获取用于取消操作的命令。
///
public ICommand CancelCommand { get; }
// 新增一行的命令
public ICommand AddNodeCommand { get; }
public ICommand DeleteNodeCommand { get; }
public ICommand CheckCommand { get; }
#endregion
#region --- 构造函数 ---
///
/// 初始化 类的新实例。
///
public WizardClientsViewModel()
{
// 实现新增逻辑
AddNodeCommand = new RelayCommand