Inheritance: GitExtensionsForm
コード例 #1
0
        public bool StartDeleteBranchDialog(string branch)
        {
            if (!InvokeEvent(PreDeleteBranch))
            {
                return(false);
            }

            var form = new FormDeleteBranch(branch);

            form.ShowDialog();

            InvokeEvent(PostDeleteBranch);

            return(true);
        }
コード例 #2
0
        public bool StartDeleteBranchDialog(IWin32Window owner, string branch)
        {
            if (!RequiresValidWorkingDir(owner))
            {
                return(false);
            }

            if (!InvokeEvent(owner, PreDeleteBranch))
            {
                return(false);
            }

            using (var form = new FormDeleteBranch(branch))
                form.ShowDialog(owner);

            InvokeEvent(owner, PostDeleteBranch);

            return(true);
        }
コード例 #3
0
        public bool StartDeleteBranchDialog(IWin32Window owner, string branch)
        {
            if (!RequiresValidWorkingDir(owner))
                return false;

            if (!InvokeEvent(owner, PreDeleteBranch))
                return false;

            using (var form = new FormDeleteBranch(this, branch))
                form.ShowDialog(owner);

            InvokeEvent(owner, PostDeleteBranch);

            return true;
        }
コード例 #4
0
        public bool StartDeleteBranchDialog(string branch)
        {
            if (!RequiresValidWorkingDir())
                return false;

            if (!InvokeEvent(PreDeleteBranch))
                return false;

            var form = new FormDeleteBranch(branch);
            form.ShowDialog();

            InvokeEvent(PostDeleteBranch);

            return true;
        }
コード例 #5
0
        public bool StartDeleteBranchDialog(string branch)
        {
            if (!InvokeEvent(PreDeleteBranch))
                return false;

            FormDeleteBranch form = new FormDeleteBranch(branch);
            form.ShowDialog();

            InvokeEvent(PostDeleteBranch);

            return true;
        }
コード例 #6
0
ファイル: RevisionGrid.cs プロジェクト: rzeng/gitextensions
        void toolStripItem_ClickBranch(object sender, EventArgs e)
        {
            ToolStripItem toolStripItem = sender as ToolStripItem;

            if (toolStripItem == null)
                return;

            //new FormProcess(GitCommands.GitCommands.DeleteBranchCmd(toolStripItem.Text, false));

            FormDeleteBranch form = new FormDeleteBranch();
            form.SetBranch(toolStripItem.Text);
            form.ShowDialog();

            ForceRefreshRevisions();
        }