mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 11:11:23 +00:00
31 lines
616 B
C#
31 lines
616 B
C#
using MewtocolNet;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Examples.WPF.ViewModels {
|
|
|
|
public class AppViewModel : ViewModelBase {
|
|
|
|
private IPlc? plc;
|
|
|
|
public bool PlcIsNull => plc == null;
|
|
|
|
public bool PlcIsNotNull => plc != null;
|
|
|
|
public IPlc? Plc {
|
|
get => plc;
|
|
set {
|
|
plc = value;
|
|
OnPropChange();
|
|
OnPropChange(nameof(PlcIsNull));
|
|
OnPropChange(nameof(PlcIsNotNull));
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|