コード例 #1
0
        public override bool Execute(GitUIEventArgs args)
        {
            using (var frm = new BitbucketPullRequestForm(this, Settings, args))
            {
                frm.ShowDialog(args.OwnerForm);
            }

            return(true);
        }
コード例 #2
0
        public override bool Execute(GitUIBaseEventArgs gitUiCommands)
        {
            using (var frm = new BitbucketPullRequestForm(this, base.Settings, gitUiCommands))
            {
                frm.ShowDialog(gitUiCommands.OwnerForm);
            }

            return(true);
        }
コード例 #3
0
        public override bool Execute(GitUIEventArgs args)
        {
            Settings settings = Bitbucket.Settings.Parse(args.GitModule, Settings, this);

            if (settings is null)
            {
                MessageBox.Show(args.OwnerForm,
                                _yourRepositoryIsNotInBitbucket.Text,
                                string.Empty,
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
                return(false);
            }

            using var frm = new BitbucketPullRequestForm(settings, args.GitModule);
            frm.ShowDialog(args.OwnerForm);

            return(true);
        }