private void AddRunProfileHistory(RunProfileExecutionCompleteEventArgs e) { if (string.IsNullOrWhiteSpace(e.RunProfileName)) { return; } RunProfileResultViewModel t = new RunProfileResultViewModel(e); this.lastRunResult = t; this.LastRunProfileName = t.RunProfileName; this.LastRunProfileResult = t.Result; Application.Current.Dispatcher.Invoke(() => { lock (this.RunHistory) { while (this.RunHistory.Count >= 100) { this.RunHistory.RemoveAt(this.RunHistory.Count - 1); } this.RunHistory.Insert(0, t); } }); }
public RunProfileResultViewModel(RunProfileExecutionCompleteEventArgs e) { this.e = e; }
public void RunProfileExecutionComplete(RunProfileExecutionCompleteEventArgs e) { this.AddRunProfileHistory(e); }