Esempio n. 1
0
        public bool StartRenameDialog(string branch)
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

            if (!InvokeEvent(PreRename))
            {
                return(true);
            }

            var form = new FormRenameBranch(branch);

            form.ShowDialog();

            InvokeEvent(PostRename);

            return(true);
        }
Esempio n. 2
0
        public bool StartRenameDialog(IWin32Window owner, string branch)
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

            if (!InvokeEvent(owner, PreRename))
            {
                return(true);
            }

            var form = new FormRenameBranch(branch);

            if (form.ShowDialog(owner) != DialogResult.OK)
            {
                return(false);
            }

            InvokeEvent(owner, PostRename);

            return(true);
        }
        public bool StartRenameDialog(IWin32Window owner, string branch)
        {
            if (!RequiresValidWorkingDir(owner))
                return false;

            if (!InvokeEvent(owner, PreRename))
                return true;

            using (var form = new FormRenameBranch(this, branch))
            {

                if (form.ShowDialog(owner) != DialogResult.OK)
                    return false;
            }

            InvokeEvent(owner, PostRename);

            return true;
        }
Esempio n. 4
0
        public bool StartRenameDialog(string branch)
        {
            if (!RequiresValidWorkingDir())
                return false;

            if (!InvokeEvent(PreRename))
                return true;

            var form = new FormRenameBranch(branch);

            if (form.ShowDialog() != DialogResult.OK)
                return false;

            InvokeEvent(PostRename);

            return true;
        }