public PathNavigationViewModel(IEventAggregator eventAggregator) { this.eventAggregator = eventAggregator; if (!this.eventAggregator.IsNull()) { eventAggregator.GetEvent <DBDataRefreshedEvents>().Subscribe(OnDBDataRefreshed, ThreadOption.UIThread); } UIPaths.CurrentChanged += UIPaths_CurrentChanged; UIPaths.MoveCurrentToFirst(); }
private void OnDBDataRefreshed(DBDataRefreshedEventEventArgs args) { switch (args.DBDataType) { case DBDataType.All: case DBDataType.Library: UIPaths.Refresh(); UIPaths.MoveCurrentToFirst(); break; } }