コード例 #1
0
ファイル: FormVerify.cs プロジェクト: kunigaku/gitextensions
 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();
     }
 }
コード例 #2
0
        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;
                });
        }