public void Checkout() { using (var form = new FormCheckoutRevision(UICommands)) { form.SetRevision(FullPath); form.ShowDialog(TreeViewNode.TreeView); } }
public bool StartCheckoutRevisionDialog(IWin32Window owner, string revision = null) { return DoActionOnRepo(owner, true, true, PreCheckoutRevision, PostCheckoutRevision, () => { using (var form = new FormCheckoutRevision(this)) { form.SetRevision(revision); return form.ShowDialog(owner) == DialogResult.OK; } } ); }