public bool StartRenameDialog(string branch) { if (!RequiresValidWorkingDir()) { return(false); } if (!InvokeEvent(PreRename)) { return(true); } var form = new FormRenameBranch(branch); form.ShowDialog(); InvokeEvent(PostRename); return(true); }
public bool StartRenameDialog(IWin32Window owner, string branch) { if (!RequiresValidWorkingDir()) { return(false); } if (!InvokeEvent(owner, PreRename)) { return(true); } var form = new FormRenameBranch(branch); if (form.ShowDialog(owner) != DialogResult.OK) { return(false); } InvokeEvent(owner, PostRename); return(true); }
public bool StartRenameDialog(IWin32Window owner, string branch) { if (!RequiresValidWorkingDir(owner)) return false; if (!InvokeEvent(owner, PreRename)) return true; using (var form = new FormRenameBranch(this, branch)) { if (form.ShowDialog(owner) != DialogResult.OK) return false; } InvokeEvent(owner, PostRename); return true; }
public bool StartRenameDialog(string branch) { if (!RequiresValidWorkingDir()) return false; if (!InvokeEvent(PreRename)) return true; var form = new FormRenameBranch(branch); if (form.ShowDialog() != DialogResult.OK) return false; InvokeEvent(PostRename); return true; }