Exemplo n.º 1
0
        public bool StartPushDialog(IWin32Window owner, bool pushOnShow)
        {
            if (!RequiresValidWorkingDir(owner))
            {
                return(false);
            }

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

            using (var form = new FormPush())
            {
                if (pushOnShow)
                {
                    form.PushAndShowDialogWhenFailed(owner);
                }
                else
                {
                    form.ShowDialog(owner);
                }
            }

            InvokeEvent(owner, PostPush);

            return(true);
        }
Exemplo n.º 2
0
        public bool StartPushDialog(bool pushOnShow)
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

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

            var form = new FormPush();

            if (pushOnShow)
            {
                form.PushAndShowDialogWhenFailed();
            }
            else
            {
                form.ShowDialog();
            }

            InvokeEvent(PostPush);

            return(true);
        }
Exemplo n.º 3
0
        public bool StartPushDialog(bool pushOnShow)
        {
            if (!InvokeEvent(PrePush))
            {
                return(true);
            }

            var form = new FormPush {
                PushOnShow = pushOnShow
            };

            form.ShowDialog();

            InvokeEvent(PostPush);

            return(true);
        }
Exemplo n.º 4
0
        public bool StartPushDialog(bool pushOnShow)
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

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

            var form = new FormPush {
                PushOnShow = pushOnShow
            };

            form.ShowDialog();

            InvokeEvent(PostPush);

            return(true);
        }
Exemplo n.º 5
0
        public bool StartPushDialog(IWin32Window owner, bool pushOnShow)
        {
            if (!RequiresValidWorkingDir(owner))
                return false;

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

            using (var form = new FormPush(this))
            {
                if (pushOnShow)
                    form.PushAndShowDialogWhenFailed(owner);
                else
                    form.ShowDialog(owner);
            }

            InvokeEvent(owner, PostPush);

            return true;
        }
Exemplo n.º 6
0
        public bool StartPushDialog(bool pushOnShow)
        {
            if (!RequiresValidWorkingDir())
                return false;

            if (!InvokeEvent(PrePush))
                return true;

            var form = new FormPush();
            if (pushOnShow)
                form.PushAndShowDialogWhenFailed();
            else
                form.ShowDialog();

            InvokeEvent(PostPush);

            return true;
        }
Exemplo n.º 7
0
        public bool StartPushDialog(IWin32Window owner, bool pushOnShow, out bool pushCompleted)
        {
            pushCompleted = false;
            if (!RequiresValidWorkingDir(owner))
                return false;

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

            using (var form = new FormPush(this))
            {
                DialogResult dlgResult;
                if (pushOnShow)
                    dlgResult = form.PushAndShowDialogWhenFailed(owner);
                else
                    dlgResult = form.ShowDialog(owner);

                if (dlgResult == DialogResult.OK)
                    pushCompleted = !form.ErrorOccurred;
            }

            InvokeEvent(owner, PostPush);

            return true;
        }
Exemplo n.º 8
0
        public bool StartPushDialog(bool pushOnShow)
        {
            if (!InvokeEvent(PrePush))
                return true;

            FormPush form = new FormPush();
            form.PushOnShow = pushOnShow;
            form.ShowDialog();

            InvokeEvent(PostPush);

            return true;
        }
Exemplo n.º 9
0
        public bool StartPushDialog(bool pushOnShow)
        {
            if (!RequiresValidWorkingDir())
                return false;

            if (!InvokeEvent(PrePush))
                return true;

            var form = new FormPush { PushOnShow = pushOnShow };
            form.ShowDialog();

            InvokeEvent(PostPush);

            return true;
        }