private void btnChooseRevision_Click(object sender, EventArgs e)
 {
     using var chooseForm = new FormChooseCommit(UICommands, SelectedRevision?.Guid);
     if (chooseForm.ShowDialog(this) == DialogResult.OK && chooseForm.SelectedRevision is not null)
     {
         SelectedRevision = chooseForm.SelectedRevision;
     }
 }
Exemple #2
0
 private void btnChooseFromRevision_Click(object sender, EventArgs e)
 {
     using (var chooseForm = new FormChooseCommit(UICommands, txtFrom.Text))
     {
         if (chooseForm.ShowDialog(this) == DialogResult.OK && chooseForm.SelectedRevision != null)
         {
             txtFrom.Text = chooseForm.SelectedRevision.Guid.Substring(0, 8);
         }
     }
 }
Exemple #3
0
 private void btnDiffChooseRevision_Click(object sender, EventArgs e)
 {
     using (var chooseForm = new FormChooseCommit(UICommands, DiffSelectedRevision != null ? DiffSelectedRevision.Guid : String.Empty))
     {
         if (chooseForm.ShowDialog(this) == DialogResult.OK && chooseForm.SelectedRevision != null)
         {
             DiffSelectedRevision = chooseForm.SelectedRevision;
         }
     }
 }
Exemple #4
0
 private void buttonPickCommit_Click(object sender, EventArgs e)
 {
     using (var chooseForm = new FormChooseCommit(UICommands, SelectedCommitHash))
     {
         if (chooseForm.ShowDialog(this) == DialogResult.OK && chooseForm.SelectedRevision != null)
         {
             SetSelectedCommitHash(chooseForm.SelectedRevision.Guid);
         }
     }
 }
Exemple #5
0
 private void PickAnotherCommit(GitRevision preSelect, ref string displayStr, ref GitRevision revision)
 {
     using (var form = new FormChooseCommit(UICommands, preselectCommit: preSelect.Guid, showArtificial: true))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             revision   = form.SelectedRevision;
             displayStr = form.SelectedRevision.Subject;
             PopulateDiffFiles();
         }
     }
 }
        private void btnChooseRevision_Click(object sender, EventArgs e)
        {
            using (var chooseForm = new FormChooseCommit(UICommands, Revision.Guid))
            {
                if (chooseForm.ShowDialog(this) == DialogResult.OK && chooseForm.SelectedRevision != null)
                {
                    Revision = chooseForm.SelectedRevision;
                }
            }

            OnRevisionChanged();
        }