public void OnCommentOnIssue(object o) { GitHubApi.AddComment(GitHubApi.Issue, Comment); var closable = o as IClosable; if (closable != null) { closable.Close(); } }