public MainPageModel(NavigationEventArgs navigation, BatContext db, NavigationService navigationService, BatNodeLogReader logReader)
		{
			_db = db;
			_navigationService = navigationService;
			_logReader = logReader;

			ImportFileCommand = new RelayCommand(async () => await ImportLogFile());
			EditCommand = new RelayCommand(() =>
			{
				if (SelectedItem != null)
				{
					_navigationService.EditLog(SelectedItem);
				}
			}, () => SelectedItem != null);
			DetailsCommand = new RelayCommand(() =>
			{
				if (SelectedItem != null)
				{
					_navigationService.NavigateToLogDetails(SelectedItem);
				}
			}, () => SelectedItem != null);
		}
 public LogDetailsPageModel(NavigationEventArgs navigation, BatContext db, NavigationService navigationService)
     : this((BatNodeLog)navigation.Parameter)
 {
     _db = db;
     _navigationService = navigationService;
 }