private string tryToSaveFile(string uriFilePath) { try { return(_fileManager.SaveFile(uriFilePath)); } catch (FileNotFoundException) { string error = string.Format(_fileNotFoundError, uriFilePath); _notificationDisplayer.RequestDisplay(new TemporaryNotificationDisplayer.Request(error, _errorDisplayTime)); } catch (IOException) { string error = string.Format(_fileSavingFailed, uriFilePath); _notificationDisplayer.RequestDisplay(new TemporaryNotificationDisplayer.Request(error, _errorDisplayTime)); } return(string.Empty); }
private void showErrorNotification() { TemporaryNotificationDisplayer.Request request = new TemporaryNotificationDisplayer.Request( _loadingErrorMessage, _errorDisplayTime); _notificationDisplayer.RequestDisplay(request); }
private void displayErrorNotification(string message) { _notificationDisplayer.RequestDisplay(new TemporaryNotificationDisplayer.Request(message, _errorMessageDisplayTime)); }
private void displayErrorNotification(string error) { TemporaryNotificationDisplayer.Request request = new TemporaryNotificationDisplayer.Request(error, _errorNotificationDisplayTime); _notificationDisplayer.RequestDisplay(request); }
private void displayErrorNotification() { _notificationDisplayer.RequestDisplay(new TemporaryNotificationDisplayer.Request(_noMetaDataErrorMessage, _errorMessageDisplayTime)); }