コード例 #1
0
        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);
                }
            });
        }
コード例 #2
0
 public RunProfileResultViewModel(RunProfileExecutionCompleteEventArgs e)
 {
     this.e = e;
 }
コード例 #3
0
 public void RunProfileExecutionComplete(RunProfileExecutionCompleteEventArgs e)
 {
     this.AddRunProfileHistory(e);
 }