private IReadWriteControlFile OpenControlFile(Android.Net.Uri uri) { try { return(ApplicationControlFileFactory.CreateControlFile(FileSystemHelper.LoadXmlFromContentUri(uri))); } catch (Exception ex) { Logger.LogException(() => $"MainViewModel:OpenControlFile", ex); CrashReporter.LogNonFatalException(ex); Observables.ToastMessage?.Invoke(this, ResourceProvider.GetString(Resource.String.error_reading_control_file)); return(null); } }