| 1234567891011121314151617181920212223242526272829 |
- using CommunityToolkit.Mvvm.Input;
- namespace SummaryModule.ViewModels;
- internal partial class GasViewModel(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("GasRegion", "MFCTable");
- }
- }
- [RelayCommand]
- private void Switch(string para)
- {
- regionManager.RequestNavigate("GasRegion", para);
- }
- }
|