|
|
@ -1,40 +1,28 @@
|
|
|
|
using hass_workstation_service.Communication.InterProcesCommunication.Models;
|
|
|
|
using hass_workstation_service.Communication.InterProcesCommunication.Models;
|
|
|
|
using ReactiveUI;
|
|
|
|
using ReactiveUI;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace UserInterface.ViewModels
|
|
|
|
namespace UserInterface.ViewModels
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class AddSensorViewModel : ViewModelBase
|
|
|
|
public class AddSensorViewModel : ViewModelBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private AvailableSensors selectedType;
|
|
|
|
private AvailableSensors _selectedType;
|
|
|
|
private string description;
|
|
|
|
private string _name;
|
|
|
|
private bool showQueryInput;
|
|
|
|
private int _updateInterval;
|
|
|
|
|
|
|
|
private string _description;
|
|
|
|
public string Description { get => description; set => this.RaiseAndSetIfChanged(ref description, value); }
|
|
|
|
private bool _showQueryInput;
|
|
|
|
public bool ShowQueryInput { get => showQueryInput; set => this.RaiseAndSetIfChanged(ref showQueryInput, value); }
|
|
|
|
private bool _showWindowNameInput;
|
|
|
|
public bool ShowWindowNameInput { get => showWindowNameInput; set => this.RaiseAndSetIfChanged(ref showWindowNameInput, value); }
|
|
|
|
private bool _showDetectionModeOptions;
|
|
|
|
|
|
|
|
private string _moreInfoLink;
|
|
|
|
public bool ShowDetectionModeOptions { get => showDetectionModeOptions; set => this.RaiseAndSetIfChanged(ref showDetectionModeOptions, value); }
|
|
|
|
|
|
|
|
|
|
|
|
public AvailableSensors SelectedType { get => _selectedType; set => this.RaiseAndSetIfChanged(ref _selectedType, value); }
|
|
|
|
private string moreInfoLink;
|
|
|
|
public string Name { get => _name; set => this.RaiseAndSetIfChanged(ref _name, value); }
|
|
|
|
private int updateInterval;
|
|
|
|
public int UpdateInterval { get => _updateInterval; set => this.RaiseAndSetIfChanged(ref _updateInterval, value); }
|
|
|
|
private bool showWindowNameInput;
|
|
|
|
public string Description { get => _description; set => this.RaiseAndSetIfChanged(ref _description, value); }
|
|
|
|
private bool showDetectionModeOptions;
|
|
|
|
public bool ShowQueryInput { get => _showQueryInput; set => this.RaiseAndSetIfChanged(ref _showQueryInput, value); }
|
|
|
|
|
|
|
|
public bool ShowWindowNameInput { get => _showWindowNameInput; set => this.RaiseAndSetIfChanged(ref _showWindowNameInput, value); }
|
|
|
|
public string MoreInfoLink
|
|
|
|
public bool ShowDetectionModeOptions { get => _showDetectionModeOptions; set => this.RaiseAndSetIfChanged(ref _showDetectionModeOptions, value); }
|
|
|
|
{
|
|
|
|
public string MoreInfoLink { get => _moreInfoLink; set => this.RaiseAndSetIfChanged(ref _moreInfoLink, value); }
|
|
|
|
get { return moreInfoLink; }
|
|
|
|
|
|
|
|
set { this.RaiseAndSetIfChanged(ref moreInfoLink, value); }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public AvailableSensors SelectedType { get => selectedType; set => this.RaiseAndSetIfChanged(ref selectedType, value); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
public string Query { get; set; }
|
|
|
|
public string Query { get; set; }
|
|
|
|
public string WindowName { get; set; }
|
|
|
|
public string WindowName { get; set; }
|
|
|
|
public int UpdateInterval { get => updateInterval; set => this.RaiseAndSetIfChanged(ref updateInterval, value); }
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|