public void Load() { try { taskRepository = taskRepositorySerializer.Deserialize(taskListStoreFilenameProvider.GetFileName()); } catch (FileNotFoundException) { // Assume we're starting for the first time taskRepository = new TaskRepository(); } catch (IOException) { taskRepository = null; } catch (SerializationException) { taskRepository = null; } catch (XmlException) { taskRepository = null; } }