예제 #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);
        }
예제 #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);
        }
예제 #3
0
        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;
        }
예제 #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;
        }