/// <summary> /// ファイルから読み込む. /// </summary> /// <returns></returns> public async Task <bool> LoadAsync() { this.InputRecorder.Clear(); if (String.IsNullOrEmpty(this.InternalName)) { return(true); } try { var folder = await ApplicationData.Current.LocalFolder.GetFolderAsync(this.InternalName); var serializer = new InputTraceSerializer() { TargetFolder = folder, }; var traces = await serializer.DeserializeAsync(); if (traces == null) { return(false); } this.InputRecorder.SetTraces(traces); return(true); } catch (System.IO.FileNotFoundException ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); return(false); } }