Beispiel #1
0
        public bool StartRemotesDialog()
        {
            if (!InvokeEvent(PreRemotes))
            {
                return(true);
            }

            var form = new FormRemotes();

            form.ShowDialog();

            InvokeEvent(PostRemotes);

            return(true);
        }
Beispiel #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);
        }
        public bool StartRemotesDialog()
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

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

            var form = new FormRemotes();

            form.ShowDialog();

            InvokeEvent(PostRemotes);

            return(true);
        }
        /// <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;
        }
Beispiel #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;
        }
        public bool StartRemotesDialog()
        {
            if (!InvokeEvent(PreRemotes))
                return true;

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

            InvokeEvent(PostRemotes);

            return true;
        }