| 12345678910111213141516171819202122232425262728 |
- using CommunityToolkit.Mvvm.Input;
- namespace SummaryModule.ViewModels;
- internal partial class PressureViewModel(IRegionManager regionManager) : ObservableObject, IActiveAware
- {
- event EventHandler IActiveAware.IsActiveChanged { add { } remove { } }
- private bool _isActive;
- public bool IsActive
- {
- get => _isActive;
- set
- {
- _isActive = value;
- if (value)
- regionManager.RequestNavigate("PressureRegion", "PressDetail");
- }
- }
- [RelayCommand]
- private void Switch(string para)
- {
- regionManager.RequestNavigate("PressureRegion", para);
- }
- }
|