Exemple #1
0
 private void mnuLostObjectsCreateBranch_Click(object sender, EventArgs e)
 {
     using (var frm = new FormCreateBranchAtRevision(UICommands) { Revision = GetCurrentGitRevision() })
     {
         var dialogResult = frm.ShowDialog(this);
         if (dialogResult == DialogResult.OK)
             UpdateLostObjects();
     }
 }
        private void CreateNewBranchToolStripMenuItemClick(object sender, EventArgs e)
        {
            if (Revisions.RowCount <= LastRow || LastRow < 0)
                return;

            UICommands.DoActionOnRepo(() =>
                {
                    var frm = new FormCreateBranchAtRevision(UICommands) { Revision = GetRevision(LastRow) };

                    return frm.ShowDialog(this) == DialogResult.OK;
                });
        }