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