private void mnuLostObjectsCreateBranch_Click(object sender, EventArgs e) { using (var frm = new FormCreateBranch(UICommands, GetCurrentGitRevision())) { var dialogResult = frm.ShowDialog(this); if (dialogResult == DialogResult.OK) { UpdateLostObjects(); } } }
private void createABranchOnThisCommitToolStripMenuItem_Click(object sender, EventArgs e) { if (gridReflog.SelectedCells.Count == 0 && gridReflog.SelectedRows.Count == 0) { return; } using (var form = new FormCreateBranch(UICommands, GetShaOfRefLine())) { form.CheckoutAfterCreation = false; form.UserAbleToChangeRevision = false; form.CouldBeOrphan = false; ShouldRefresh = form.ShowDialog(this) == DialogResult.OK; } }
private void createABranchOnThisCommitToolStripMenuItem_Click(object sender, EventArgs e) { if (gridReflog.SelectedCells.Count == 0 && gridReflog.SelectedRows.Count == 0) { return; } using (var form = new FormCreateBranch(UICommands, new GitCommands.GitRevision((GitCommands.GitModule)UICommands.GitModule, GetShaOfRefLine()))) { form.CheckoutAfterCreation = false; form.UserAbleToChangeRevision = false; form.CouldBeOrphan = false; ShouldRefresh = form.ShowDialog(this) == DialogResult.OK; } }
public bool StartCreateBranchDialog(IWin32Window owner, GitRevision revision) { Func<bool> action = () => { using (var form = new FormCreateBranch(this, revision)) { return form.ShowDialog(owner) == DialogResult.OK; } }; return DoActionOnRepo(owner, true, true, PreCreateBranch, PostCreateBranch, action); }
private void CreateNewBranchToolStripMenuItemClick(object sender, EventArgs e) { if (Revisions.RowCount <= LastRowIndex || LastRowIndex < 0) return; UICommands.DoActionOnRepo(() => { var frm = new FormCreateBranch(UICommands, GetRevision(LastRowIndex)); return frm.ShowDialog(this) == DialogResult.OK; }); }
private void mnuLostObjectsCreateBranch_Click(object sender, EventArgs e) { using (var frm = new FormCreateBranch(UICommands, GetCurrentGitRevision())) { var dialogResult = frm.ShowDialog(this); if (dialogResult == DialogResult.OK) UpdateLostObjects(); } }
public bool StartCreateBranchDialog(IWin32Window owner) { Func<bool> action = () => { using (var form = new FormCreateBranch(this)) form.ShowDialog(owner); return true; }; return DoActionOnRepo(owner, true, false, PreCreateBranch, PostCreateBranch, action); }