You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
619 B

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<string> NavigateCommand { get; private set; }
public MainViewModel(IRegionManager regionManager, IEventAggregator ea) : base(regionManager, ea)
{
NavigateCommand = new DelegateCommand<string>(Navigate);
}
private void Navigate(string navigatePath)
{
if (navigatePath != null)
{
_regionManager.RequestNavigate(RegionsName.SystemSetCenter, navigatePath);
}
}
}
}