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

            var form = new FormDeleteTag();

            form.ShowDialog();

            InvokeEvent(PostDeleteTag);

            return(true);
        }
Exemplo n.º 2
0
        public bool StartDeleteTagDialog(IWin32Window owner)
        {
            if (!RequiresValidWorkingDir(owner))
            {
                return(false);
            }

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

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

            InvokeEvent(owner, PostDeleteTag);

            return(true);
        }
Exemplo n.º 3
0
        public bool StartDeleteTagDialog()
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

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

            var form = new FormDeleteTag();

            form.ShowDialog();

            InvokeEvent(PostDeleteTag);

            return(true);
        }
Exemplo n.º 4
0
        public bool StartDeleteTagDialog(IWin32Window owner, string tag)
        {
            Func<bool> action = () =>
            {
                using (var form = new FormDeleteTag(this, tag))
                {
                    return form.ShowDialog(owner) == DialogResult.OK;
                }

            };

            return DoActionOnRepo(owner, true, true, PreDeleteTag, PostDeleteTag, action);
        }
Exemplo n.º 5
0
        public bool StartDeleteTagDialog(IWin32Window owner, string tag)
        {
            if (!RequiresValidWorkingDir(owner))
                return false;

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

            using (var form = new FormDeleteTag(this, tag))
            {
                if (form.ShowDialog(owner) != DialogResult.OK)
                {
                    return false;
                }
            }

            InvokeEvent(owner, PostDeleteTag);

            return true;
        }
Exemplo n.º 6
0
        public bool StartDeleteTagDialog(IWin32Window owner)
        {
            if (!RequiresValidWorkingDir())
                return false;

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

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

            InvokeEvent(owner, PostDeleteTag);

            return true;
        }
Exemplo n.º 7
0
        public bool StartDeleteTagDialog()
        {
            if (!InvokeEvent(PreDeleteTag))
                return true;

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

            InvokeEvent(PostDeleteTag);

            return true;
        }