public override bool Execute(GitUIEventArgs args) { using (var frm = new BitbucketPullRequestForm(this, Settings, args)) { frm.ShowDialog(args.OwnerForm); } return(true); }
public override bool Execute(GitUIBaseEventArgs gitUiCommands) { using (var frm = new BitbucketPullRequestForm(this, base.Settings, gitUiCommands)) { frm.ShowDialog(gitUiCommands.OwnerForm); } return(true); }
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); }