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; } }
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); } } }
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; } } }
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); } } }
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(); }