26 lines
640 B
C#
26 lines
640 B
C#
using DaSaSo.ViewModel.Interface;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DaSaSo.ViewModel.State.Navigation
|
|
{
|
|
public class SewerMainNavigator : ISewerMainNavigator
|
|
{
|
|
private BaseViewModel _currentViewModel;
|
|
public BaseViewModel CurrentViewModel
|
|
{
|
|
get => _currentViewModel;
|
|
set
|
|
{
|
|
_currentViewModel?.Dispose();
|
|
_currentViewModel = value;
|
|
StateChanged?.Invoke();
|
|
}
|
|
}
|
|
public event Action StateChanged;
|
|
}
|
|
}
|