public IList <Dialog> GetDialogs() { Syncro syncro = new Syncro(); syncro.Load(Dialogs); this.Dialogs = syncro.GetSynced(); return(this.Dialogs); }
public void SyncTest() { Syncro syncro = new Syncro(); syncro.Load(SyncTestData()); List <Dialog> synced = syncro.GetSynced(); foreach (Dialog dialog in synced) { StringBuilder sb = new StringBuilder(); sb.Append(new Timing(dialog.startTime).GetSrtTime()).Append(" => "); sb.Append(new Timing(dialog.endTime).GetSrtTime()); sb.AppendLine().AppendLine(dialog.text); System.Diagnostics.Debug.WriteLine(sb.ToString()); } }