Example #1
0
			public virtual PlotCommitListTest.CommitListAssert Commit(RevCommit id)
			{
				NUnit.Framework.Assert.IsTrue(this.pcl.Count > this.nextIndex, "Unexpected end of list at pos#"
					 + this.nextIndex);
				this.current = this.pcl[this.nextIndex++];
				NUnit.Framework.Assert.AreEqual(id.Id, this.current.Id, "Expected commit not found at pos#"
					 + (this.nextIndex - 1));
				return this;
			}
Example #2
0
        private void OnCommitClicked(PlotCommit commit)
        {
            if (CommitClicked == null)
            {
                return;
            }
            var c = new Commit(m_repo, commit.Name);

            m_selection.Update(c);
            CommitClicked(c);
        }
 /// <summary>
 /// Draws the given PlotCommit to given DrawingContext using class's parameters
 /// </summary>
 /// <param name="Cmt">PlotCommit to render</param>
 /// <param name="CurDC">DrawingContext to use</param>
 /// <returns>Maximum width used</returns>
 public double DrawPlotCommit(PlotCommit Cmt, DrawingContext CurDC)
 {
     if (Cmt == null)
     {
         return(0);
     }
     _DC   = CurDC;  // setup private variables for render process
     _MaxX = 0;
     paintCommit(Cmt, Height);
     _DC = null;     // DC likely won't be valid after this, don't hang on to it
     return(_MaxX);
 }
        private void lstCommits_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            UpdateJumpLists();  //Update Jump Lists ?
            PlotCommit commit = lstCommits.SelectedItem as PlotCommit;

            if (CommitClicked == null || commit == null)
            {
                return;
            }
            var c = new Commit(m_repo, commit.Name);

            CommitClicked(c);
        }
Example #5
0
 protected override void paintCommit(PlotCommit commit, int h)
 {
     m_plot_commits.Add(commit);
     base.paintCommit(commit, h);
     m_line++;
 }
 private void OnCommitClicked(PlotCommit commit)
 {
     this.model.Model = new Commit(m_repo, commit.Name);
     m_selection.Update(this.model.Model);
 }