Exemplo n.º 1
0
        public bool StartRemotesDialog()
        {
            if (!InvokeEvent(PreRemotes))
            {
                return(true);
            }

            var form = new FormRemotes();

            form.ShowDialog();

            InvokeEvent(PostRemotes);

            return(true);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public bool StartRemotesDialog()
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

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

            var form = new FormRemotes();

            form.ShowDialog();

            InvokeEvent(PostRemotes);

            return(true);
        }
Exemplo n.º 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;
        }
Exemplo n.º 5
0
        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;
        }
Exemplo n.º 6
0
        public bool StartRemotesDialog()
        {
            if (!InvokeEvent(PreRemotes))
                return true;

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

            InvokeEvent(PostRemotes);

            return true;
        }