Пример #1
0
 public void Checkout()
 {
     using (var form = new FormCheckoutRevision(UICommands))
     {
         form.SetRevision(FullPath);
         form.ShowDialog(TreeViewNode.TreeView);
     }
 }
Пример #2
0
 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;
             }
         }
     );
 }