{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/jaseonline/ConfirmationButton/pulls/5","id":85851774,"html_url":"https://github.com/jaseonline/ConfirmationButton/pull/5","diff_url":"https://github.com/jaseonline/ConfirmationButton/pull/5.diff","patch_url":"https://github.com/jaseonline/ConfirmationButton/pull/5.patch","issue_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/issues/5","number":5,"state":"open","locked":false,"title":"Refactored background texture code and fixed image tiling","user":{"login":"BenChand","id":3618457,"avatar_url":"https://avatars.githubusercontent.com/u/3618457?v=3","gravatar_id":"","url":"https://api.github.com/users/BenChand","html_url":"https://github.com/BenChand","followers_url":"https://api.github.com/users/BenChand/followers","following_url":"https://api.github.com/users/BenChand/following{/other_user}","gists_url":"https://api.github.com/users/BenChand/gists{/gist_id}","starred_url":"https://api.github.com/users/BenChand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenChand/subscriptions","organizations_url":"https://api.github.com/users/BenChand/orgs","repos_url":"https://api.github.com/users/BenChand/repos","events_url":"https://api.github.com/users/BenChand/events{/privacy}","received_events_url":"https://api.github.com/users/BenChand/received_events","type":"User","site_admin":false},"body":"Removed a lot of duplicate code in the Background Texture Layout switch statement. The switch statement has been replaced with a dictionary mapping all types in the `ImageLayout` enum to a function that generates a relevant rectangle on the form.\r\n\r\nAnother thing I noticed while refactoring the code is that the image didn't repeat when the draw mode was set to \"tiling\". There were 2 causes for this:\r\n\r\n- The rectangle generated for `ImageLayout.Tiling` was the width and height of the image when it really should be the width and height of the control in order for the image to repeat.\r\n- The paint event called was `DrawImage` when it should have been `FillRectangle`\r\n\r\nI fixed these 2 causes and tiling now seems to work.\r\n\r\nLet me know what you think\r\n","created_at":"2016-09-19T19:13:14Z","updated_at":"2016-09-19T19:13:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a12f4fb5a10c64cb884fa27b5d7bca6c473667ee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/pulls/5/commits","review_comments_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/pulls/5/comments","review_comment_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/issues/5/comments","statuses_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/statuses/3c256a83446bfc0910b2c6898a6a780b5fe85bb5","head":{"label":"BenChand:refactor-background-texture","ref":"refactor-background-texture","sha":"3c256a83446bfc0910b2c6898a6a780b5fe85bb5","user":{"login":"BenChand","id":3618457,"avatar_url":"https://avatars.githubusercontent.com/u/3618457?v=3","gravatar_id":"","url":"https://api.github.com/users/BenChand","html_url":"https://github.com/BenChand","followers_url":"https://api.github.com/users/BenChand/followers","following_url":"https://api.github.com/users/BenChand/following{/other_user}","gists_url":"https://api.github.com/users/BenChand/gists{/gist_id}","starred_url":"https://api.github.com/users/BenChand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenChand/subscriptions","organizations_url":"https://api.github.com/users/BenChand/orgs","repos_url":"https://api.github.com/users/BenChand/repos","events_url":"https://api.github.com/users/BenChand/events{/privacy}","received_events_url":"https://api.github.com/users/BenChand/received_events","type":"User","site_admin":false},"repo":{"id":68610880,"name":"ConfirmationButton","full_name":"BenChand/ConfirmationButton","owner":{"login":"BenChand","id":3618457,"avatar_url":"https://avatars.githubusercontent.com/u/3618457?v=3","gravatar_id":"","url":"https://api.github.com/users/BenChand","html_url":"https://github.com/BenChand","followers_url":"https://api.github.com/users/BenChand/followers","following_url":"https://api.github.com/users/BenChand/following{/other_user}","gists_url":"https://api.github.com/users/BenChand/gists{/gist_id}","starred_url":"https://api.github.com/users/BenChand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenChand/subscriptions","organizations_url":"https://api.github.com/users/BenChand/orgs","repos_url":"https://api.github.com/users/BenChand/repos","events_url":"https://api.github.com/users/BenChand/events{/privacy}","received_events_url":"https://api.github.com/users/BenChand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BenChand/ConfirmationButton","description":"A ConfirmationButton for Windows Forms applications","fork":true,"url":"https://api.github.com/repos/BenChand/ConfirmationButton","forks_url":"https://api.github.com/repos/BenChand/ConfirmationButton/forks","keys_url":"https://api.github.com/repos/BenChand/ConfirmationButton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BenChand/ConfirmationButton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BenChand/ConfirmationButton/teams","hooks_url":"https://api.github.com/repos/BenChand/ConfirmationButton/hooks","issue_events_url":"https://api.github.com/repos/BenChand/ConfirmationButton/issues/events{/number}","events_url":"https://api.github.com/repos/BenChand/ConfirmationButton/events","assignees_url":"https://api.github.com/repos/BenChand/ConfirmationButton/assignees{/user}","branches_url":"https://api.github.com/repos/BenChand/ConfirmationButton/branches{/branch}","tags_url":"https://api.github.com/repos/BenChand/ConfirmationButton/tags","blobs_url":"https://api.github.com/repos/BenChand/ConfirmationButton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BenChand/ConfirmationButton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BenChand/ConfirmationButton/git/refs{/sha}","trees_url":"https://api.github.com/repos/BenChand/ConfirmationButton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BenChand/ConfirmationButton/statuses/{sha}","languages_url":"https://api.github.com/repos/BenChand/ConfirmationButton/languages","stargazers_url":"https://api.github.com/repos/BenChand/ConfirmationButton/stargazers","contributors_url":"https://api.github.com/repos/BenChand/ConfirmationButton/contributors","subscribers_url":"https://api.github.com/repos/BenChand/ConfirmationButton/subscribers","subscription_url":"https://api.github.com/repos/BenChand/ConfirmationButton/subscription","commits_url":"https://api.github.com/repos/BenChand/ConfirmationButton/commits{/sha}","git_commits_url":"https://api.github.com/repos/BenChand/ConfirmationButton/git/commits{/sha}","comments_url":"https://api.github.com/repos/BenChand/ConfirmationButton/comments{/number}","issue_comment_url":"https://api.github.com/repos/BenChand/ConfirmationButton/issues/comments{/number}","contents_url":"https://api.github.com/repos/BenChand/ConfirmationButton/contents/{+path}","compare_url":"https://api.github.com/repos/BenChand/ConfirmationButton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BenChand/ConfirmationButton/merges","archive_url":"https://api.github.com/repos/BenChand/ConfirmationButton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BenChand/ConfirmationButton/downloads","issues_url":"https://api.github.com/repos/BenChand/ConfirmationButton/issues{/number}","pulls_url":"https://api.github.com/repos/BenChand/ConfirmationButton/pulls{/number}","milestones_url":"https://api.github.com/repos/BenChand/ConfirmationButton/milestones{/number}","notifications_url":"https://api.github.com/repos/BenChand/ConfirmationButton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BenChand/ConfirmationButton/labels{/name}","releases_url":"https://api.github.com/repos/BenChand/ConfirmationButton/releases{/id}","deployments_url":"https://api.github.com/repos/BenChand/ConfirmationButton/deployments","created_at":"2016-09-19T13:54:07Z","updated_at":"2016-09-19T13:54:08Z","pushed_at":"2016-09-19T19:09:27Z","git_url":"git://github.com/BenChand/ConfirmationButton.git","ssh_url":"git@github.com:BenChand/ConfirmationButton.git","clone_url":"https://github.com/BenChand/ConfirmationButton.git","svn_url":"https://github.com/BenChand/ConfirmationButton","homepage":null,"size":175,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jaseonline:master","ref":"master","sha":"2e4af17da637555aa230195df5a572814e570af0","user":{"login":"jaseonline","id":17606016,"avatar_url":"https://avatars.githubusercontent.com/u/17606016?v=3","gravatar_id":"","url":"https://api.github.com/users/jaseonline","html_url":"https://github.com/jaseonline","followers_url":"https://api.github.com/users/jaseonline/followers","following_url":"https://api.github.com/users/jaseonline/following{/other_user}","gists_url":"https://api.github.com/users/jaseonline/gists{/gist_id}","starred_url":"https://api.github.com/users/jaseonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaseonline/subscriptions","organizations_url":"https://api.github.com/users/jaseonline/orgs","repos_url":"https://api.github.com/users/jaseonline/repos","events_url":"https://api.github.com/users/jaseonline/events{/privacy}","received_events_url":"https://api.github.com/users/jaseonline/received_events","type":"User","site_admin":false},"repo":{"id":54827608,"name":"ConfirmationButton","full_name":"jaseonline/ConfirmationButton","owner":{"login":"jaseonline","id":17606016,"avatar_url":"https://avatars.githubusercontent.com/u/17606016?v=3","gravatar_id":"","url":"https://api.github.com/users/jaseonline","html_url":"https://github.com/jaseonline","followers_url":"https://api.github.com/users/jaseonline/followers","following_url":"https://api.github.com/users/jaseonline/following{/other_user}","gists_url":"https://api.github.com/users/jaseonline/gists{/gist_id}","starred_url":"https://api.github.com/users/jaseonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaseonline/subscriptions","organizations_url":"https://api.github.com/users/jaseonline/orgs","repos_url":"https://api.github.com/users/jaseonline/repos","events_url":"https://api.github.com/users/jaseonline/events{/privacy}","received_events_url":"https://api.github.com/users/jaseonline/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jaseonline/ConfirmationButton","description":"A ConfirmationButton for Windows Forms applications","fork":false,"url":"https://api.github.com/repos/jaseonline/ConfirmationButton","forks_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/forks","keys_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/teams","hooks_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/hooks","issue_events_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/issues/events{/number}","events_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/events","assignees_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/assignees{/user}","branches_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/branches{/branch}","tags_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/tags","blobs_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/git/refs{/sha}","trees_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/statuses/{sha}","languages_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/languages","stargazers_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/stargazers","contributors_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/contributors","subscribers_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/subscribers","subscription_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/subscription","commits_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/commits{/sha}","git_commits_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/git/commits{/sha}","comments_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/comments{/number}","issue_comment_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/issues/comments{/number}","contents_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/contents/{+path}","compare_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/merges","archive_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/downloads","issues_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/issues{/number}","pulls_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/pulls{/number}","milestones_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/milestones{/number}","notifications_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/labels{/name}","releases_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/releases{/id}","deployments_url":"https://api.github.com/repos/jaseonline/ConfirmationButton/deployments","created_at":"2016-03-27T12:33:53Z","updated_at":"2016-09-19T14:23:52Z","pushed_at":"2016-09-19T19:13:14Z","git_url":"git://github.com/jaseonline/ConfirmationButton.git","ssh_url":"git@github.com:jaseonline/ConfirmationButton.git","clone_url":"https://github.com/jaseonline/ConfirmationButton.git","svn_url":"https://github.com/jaseonline/ConfirmationButton","homepage":null,"size":176,"stargazers_count":2,"watchers_count":2,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jaseonline/ConfirmationButton/pulls/5"},"html":{"href":"https://github.com/jaseonline/ConfirmationButton/pull/5"},"issue":{"href":"https://api.github.com/repos/jaseonline/ConfirmationButton/issues/5"},"comments":{"href":"https://api.github.com/repos/jaseonline/ConfirmationButton/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/jaseonline/ConfirmationButton/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/jaseonline/ConfirmationButton/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jaseonline/ConfirmationButton/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/jaseonline/ConfirmationButton/statuses/3c256a83446bfc0910b2c6898a6a780b5fe85bb5"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":33,"deletions":60,"changed_files":1}}
{"actor":{"display_login":"BenChand"}}