private void UpdateFromViewModel(FileItemViewModel fileVm)
 {
     Task.Factory.StartNew(() =>
     {
         var persistedFile = new PersistedFileItem(fileVm);
         _repository.Update(persistedFile);
     });
 }
 public void SetIconPath(FileItemViewModel fileVm)
 {
     UpdateFromViewModel(fileVm);
 }
 public void UnpinApp(FileItemViewModel fileVm)
 {
     UpdateFromViewModel(fileVm);
 }
        public void ExecuteApplication(FileItemViewModel file)
        {
            ProcessUtility.ExecuteProcess(file.Path);
            ExecuteOnUiThread(() => _events.Publish(ApplicationExecutedEvent.Default));

            UpdateFromViewModel(file);
        }