using ECMonitor.Code.Models; using ECMonitor.Page.Name; using Prism.Commands; using Prism.Events; using Prism.Regions; namespace ECMonitor.Page.SystemSet { public class MainViewModel : BaseModel { public DelegateCommand NavigateCommand { get; private set; } public MainViewModel(IRegionManager regionManager, IEventAggregator ea) : base(regionManager, ea) { NavigateCommand = new DelegateCommand(Navigate); } private void Navigate(string navigatePath) { if (navigatePath != null) { _regionManager.RequestNavigate(RegionsName.SystemSetCenter, navigatePath); } } } }