public void UpdateFromLog(DataLogOutput dualityLog) { if (dualityLog == null) { this.Clear(); return; } this.entryList.Clear(); foreach (var entry in dualityLog.Data) { this.entryList.Add(new ViewEntry(this, entry)); } this.OnContentChanged(); }
public void BindToOutput(DataLogOutput dualityLog) { if (this.boundOutput == dualityLog) { return; } if (this.boundOutput != null) { this.boundOutput.NewEntry -= this.boundOutput_NewEntry; } this.boundOutput = dualityLog; this.UpdateFromLog(this.boundOutput); if (this.boundOutput != null) { this.boundOutput.NewEntry += this.boundOutput_NewEntry; } }