| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Caliburn.Micro.Core;
- namespace FurnaceUI.DataModule
- {
- public class PageDataView : PropertyChangedBase
- {
- private int _index;
- public int Index
- {
- get => _index;
- set
- {
- _index = value;
- NotifyOfPropertyChange(nameof(Index));
- }
- }
- private string _name;
- public string Name
- {
- get => _name;
- set
- {
- _name = value;
- NotifyOfPropertyChange(nameof(Name));
- }
- }
- private string _valueStr;
- public string ValueStr
- {
- get => _valueStr;
- set
- {
- if (bool.TryParse(value, out bool boolStr))
- {
- _valueStr = boolStr ? "Yes" : "No";
- }
- else
- {
- _valueStr = value;
- }
- NotifyOfPropertyChange(nameof(ValueStr));
- }
- }
- private bool _isSelect;
- public bool IsSelect
- {
- get => _isSelect;
- set
- {
- _isSelect = value;
- NotifyOfPropertyChange(nameof(IsSelect));
- }
- }
- private string _compareValueStr;
- public string CompareValueStr
- {
- get => _compareValueStr;
- set
- {
- if (bool.TryParse(value, out bool boolStr))
- {
- _compareValueStr = boolStr ? "Yes" : "No";
- }
- else
- {
- _compareValueStr = value;
- }
- NotifyOfPropertyChange(nameof(CompareValueStr));
- }
- }
- private bool _isHidden;
- public bool IsHidden
- {
- get => _isHidden;
- set
- {
- _isHidden = value;
- NotifyOfPropertyChange(nameof(IsHidden));
- }
- }
- private bool _isDifference;
- public bool IsDifference
- {
- get => _isDifference;
- set
- {
- _isDifference = value;
- NotifyOfPropertyChange(nameof(IsDifference));
- }
- }
- }
- }
|