private void ReInitializeBookmarkServiceOnFileUrl() { if (string.IsNullOrEmpty(_ImportFileUrl)) { return; } if (_ImportFileUrl.EndsWith(".csv")) { BookmarkService = ServiceLocator.Current.GetInstance <BookmarkServiceBase>(BookmarkServiceFormat.ImportCsvFormat); } else { BookmarkService = ServiceLocator.Current.GetInstance <BookmarkServiceBase>(BookmarkServiceFormat.ImportHtmlFormat); } }
public ImportBookmarksViewModel() { NavigationService = ServiceLocator.Current.GetInstance <INavigationService>(); BookmarkService = ServiceLocator.Current.GetInstance <BookmarkServiceBase>(BookmarkServiceFormat.ImportHtmlFormat); }