Example #1
0
        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();
        }
Example #2
0
        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;
            }
        }