public void Checkout() { using (var form = new FormCheckoutBranch(UICommands, FullPath, remote: true)) { form.ShowDialog(TreeViewNode.TreeView); } }
public bool StartCheckoutBranch(IWin32Window owner, string branch, bool remote, string[] containRevisons) { return DoActionOnRepo(owner, true, true, PreCheckoutBranch, PostCheckoutBranch, () => { using (var form = new FormCheckoutBranch(this, branch, remote, containRevisons)) return form.DoDefaultActionOrShow(owner) != DialogResult.Cancel; } ); }