66 lines
1.7 KiB
C#
66 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WpfMaiTouchEmulator
|
|
{
|
|
class MainWindowViewModel : INotifyPropertyChanged
|
|
{
|
|
private bool _isAutomaticPortConnectingEnabled;
|
|
private bool _isDebugEnabled;
|
|
private bool _isAutomaticPositioningEnabled;
|
|
private bool _isExitWithSinmaiEnabled;
|
|
|
|
public bool IsDebugEnabled
|
|
{
|
|
get => _isDebugEnabled;
|
|
set
|
|
{
|
|
_isDebugEnabled = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
public bool IsAutomaticPositioningEnabled
|
|
{
|
|
get => _isAutomaticPositioningEnabled;
|
|
set
|
|
{
|
|
_isAutomaticPositioningEnabled = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
public bool IsAutomaticPortConnectingEnabled
|
|
{
|
|
get => _isAutomaticPortConnectingEnabled;
|
|
set
|
|
{
|
|
_isAutomaticPortConnectingEnabled = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
public bool IsExitWithSinmaiEnabled
|
|
{
|
|
get => _isExitWithSinmaiEnabled;
|
|
set
|
|
{
|
|
_isExitWithSinmaiEnabled = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
protected virtual void OnPropertyChanged([CallerMemberName] string? propertyName = null)
|
|
{
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|