コード例 #1
0
ファイル: TaskListStore.cs プロジェクト: joshmgross/timely
 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;
     }
 }