コード例 #1
0
        public bool StartRemotesDialog()
        {
            if (!InvokeEvent(PreRemotes))
            {
                return(true);
            }

            var form = new FormRemotes();

            form.ShowDialog();

            InvokeEvent(PostRemotes);

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

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

            using (var form = new FormRemotes())
                form.ShowDialog(owner);

            InvokeEvent(owner, PostRemotes);

            return(true);
        }
コード例 #3
0
        public bool StartRemotesDialog()
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

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

            var form = new FormRemotes();

            form.ShowDialog();

            InvokeEvent(PostRemotes);

            return(true);
        }
コード例 #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="owner"></param>
        /// <param name="preselectRemote">makes the FormRemotes initialially select the given remote</param>
        /// <returns></returns>
        public bool StartRemotesDialog(IWin32Window owner, string preselectRemote)
        {
            if (!RequiresValidWorkingDir(owner))
                return false;

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

            using (var form = new FormRemotes(this))
            {
                form.PreselectRemoteOnLoad = preselectRemote;
                form.ShowDialog(owner);
            }

            InvokeEvent(owner, PostRemotes);

            return true;
        }
コード例 #5
0
ファイル: GitUICommands.cs プロジェクト: phiree/gitextensions
        public bool StartRemotesDialog(IWin32Window owner)
        {
            if (!RequiresValidWorkingDir())
                return false;

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

            var form = new FormRemotes();
            form.ShowDialog(owner);

            InvokeEvent(owner, PostRemotes);

            return true;
        }
コード例 #6
0
        public bool StartRemotesDialog()
        {
            if (!InvokeEvent(PreRemotes))
                return true;

            FormRemotes form = new FormRemotes();
            form.ShowDialog();

            InvokeEvent(PostRemotes);

            return true;
        }