public bool StartDeleteBranchDialog(string branch) { if (!InvokeEvent(PreDeleteBranch)) { return(false); } var form = new FormDeleteBranch(branch); form.ShowDialog(); InvokeEvent(PostDeleteBranch); return(true); }
public bool StartDeleteBranchDialog(IWin32Window owner, string branch) { if (!RequiresValidWorkingDir(owner)) { return(false); } if (!InvokeEvent(owner, PreDeleteBranch)) { return(false); } using (var form = new FormDeleteBranch(branch)) form.ShowDialog(owner); InvokeEvent(owner, PostDeleteBranch); return(true); }
public bool StartDeleteBranchDialog(IWin32Window owner, string branch) { if (!RequiresValidWorkingDir(owner)) return false; if (!InvokeEvent(owner, PreDeleteBranch)) return false; using (var form = new FormDeleteBranch(this, branch)) form.ShowDialog(owner); InvokeEvent(owner, PostDeleteBranch); return true; }
public bool StartDeleteBranchDialog(string branch) { if (!RequiresValidWorkingDir()) return false; if (!InvokeEvent(PreDeleteBranch)) return false; var form = new FormDeleteBranch(branch); form.ShowDialog(); InvokeEvent(PostDeleteBranch); return true; }
public bool StartDeleteBranchDialog(string branch) { if (!InvokeEvent(PreDeleteBranch)) return false; FormDeleteBranch form = new FormDeleteBranch(branch); form.ShowDialog(); InvokeEvent(PostDeleteBranch); return true; }
void toolStripItem_ClickBranch(object sender, EventArgs e) { ToolStripItem toolStripItem = sender as ToolStripItem; if (toolStripItem == null) return; //new FormProcess(GitCommands.GitCommands.DeleteBranchCmd(toolStripItem.Text, false)); FormDeleteBranch form = new FormDeleteBranch(); form.SetBranch(toolStripItem.Text); form.ShowDialog(); ForceRefreshRevisions(); }