Inheritance: GitExtensionsForm
Esempio n. 1
0
        public bool StartDeleteBranchDialog(string branch)
        {
            if (!InvokeEvent(PreDeleteBranch))
            {
                return(false);
            }

            var form = new FormDeleteBranch(branch);

            form.ShowDialog();

            InvokeEvent(PostDeleteBranch);

            return(true);
        }
Esempio n. 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);
        }
        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;
        }
Esempio n. 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;
        }
Esempio n. 5
0
        public bool StartDeleteBranchDialog(string branch)
        {
            if (!InvokeEvent(PreDeleteBranch))
                return false;

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

            InvokeEvent(PostDeleteBranch);

            return true;
        }
Esempio n. 6
0
        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();
        }