using EC.Entity.Video; using ECMonitor.Code; using ECMonitor.Code.Models; using Prism.Events; using Prism.Regions; using System.Collections.Generic; namespace ECMonitor.Page.CameraMonitor { public class CameraTreeViewModel : BaseModel { private IEventAggregator _ea; public List MsVideoRecorderList { get; set; } public CameraTreeViewModel(IRegionManager regionManager, IEventAggregator ea) : base(regionManager, ea) { _ea = ea; LoadData(); } private void LoadData() { MsVideoRecorderList = CameraManager.LoadData(); } } }