{"action":"created","comment":{"url":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/comments/89786736","pull_request_review_id":10320049,"id":89786736,"diff_hunk":"@@ -0,0 +1,105 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.ComponentModel;\n+using System.Data;\n+using System.Drawing;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+using System.Windows.Forms;\n+using LogNamespace;\n+using ShapeNamespace;\n+\n+namespace SimpleGraphicsEditor\n+{\n+    public partial class Editor : Form\n+    {\n+        public Editor()\n+        {\n+            InitializeComponent();\n+            isClicked = false;\n+            log = new Log();\n+\n+            start.X = 0;\n+            start.Y = 0;\n+            myPen = new Pen(Color.Black);\n+            field.Invalidate();\n+        }\n+\n+        private void OnButtonShapesClick(object sender, EventArgs e)\n+        {\n+            currentButton = (Button)sender;\n+        }\n+\n+        private bool isClicked;\n+        private Button currentButton;\n+        private delegate void DrawShape(Pen pen, Point pt1, Point pt2);\n+        private DrawShape drawMove;\n+        private Log log;\n+        private Point start;\n+        private Point move;\n+        private bool undo = false;\n+        private PaintEventArgs pictureBoxArg;\n+        private bool first = false;\n+        private Pen myPen;\n+\n+        private void field_MouseDown(object sender, MouseEventArgs e)\n+        {\n+            field.Invalidate();\n+            isClicked = true;\n+            start.X = e.X;\n+            start.Y = e.Y;\n+            move.X = e.X;\n+            move.Y = e.Y;\n+        }\n+\n+        private void field_MouseMove(object sender, MouseEventArgs e)\n+        {\n+            if (isClicked)\n+            {\n+                move.X = e.X;\n+                move.Y = e.Y;\n+                field.Invalidate();\n+            }\n+        }\n+\n+        private void field_MouseUp(object sender, MouseEventArgs e)\n+        {\n+            isClicked = false;\n+            Pen ppeenn = new Pen(Color.Black);\n+            log.Add(new Line(true, new Parameters(new Point(start.X, start.Y), new Point(move.X, move.Y), ppeenn), pictureBoxArg));\n+        }\n+\n+        private void field_Paint(object sender, PaintEventArgs e)\n+        {\n+            ShapeShape(e);\n+            e.Graphics.DrawLine(Pens.Black, start, move);\n+            \n+            log.DrawPicture();\n+            \n+        }\n+\n+        private void ShapeShape(PaintEventArgs e)","path":"Third_semestr/Homework_4/SimpleGraphicsEditor/SimpleGraphicsEditor/Editor.cs","position":82,"original_position":82,"commit_id":"1cfd9314da45a7177968c247723fc94ca19217d4","original_commit_id":"1cfd9314da45a7177968c247723fc94ca19217d4","user":{"login":"yurii-litvinov","id":706768,"avatar_url":"https://avatars.githubusercontent.com/u/706768?v=3","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"Странное имя метода.","created_at":"2016-11-28T14:08:03Z","updated_at":"2016-11-28T14:08:03Z","html_url":"https://github.com/AlbertMukhammadiev/University/pull/46#discussion_r89786736","pull_request_url":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/comments/89786736"},"html":{"href":"https://github.com/AlbertMukhammadiev/University/pull/46#discussion_r89786736"},"pull_request":{"href":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/46","id":89502907,"html_url":"https://github.com/AlbertMukhammadiev/University/pull/46","diff_url":"https://github.com/AlbertMukhammadiev/University/pull/46.diff","patch_url":"https://github.com/AlbertMukhammadiev/University/pull/46.patch","issue_url":"https://api.github.com/repos/AlbertMukhammadiev/University/issues/46","number":46,"state":"open","locked":false,"title":"Hw4 simpleeditor","user":{"login":"AlbertMukhammadiev","id":15523700,"avatar_url":"https://avatars.githubusercontent.com/u/15523700?v=3","gravatar_id":"","url":"https://api.github.com/users/AlbertMukhammadiev","html_url":"https://github.com/AlbertMukhammadiev","followers_url":"https://api.github.com/users/AlbertMukhammadiev/followers","following_url":"https://api.github.com/users/AlbertMukhammadiev/following{/other_user}","gists_url":"https://api.github.com/users/AlbertMukhammadiev/gists{/gist_id}","starred_url":"https://api.github.com/users/AlbertMukhammadiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlbertMukhammadiev/subscriptions","organizations_url":"https://api.github.com/users/AlbertMukhammadiev/orgs","repos_url":"https://api.github.com/users/AlbertMukhammadiev/repos","events_url":"https://api.github.com/users/AlbertMukhammadiev/events{/privacy}","received_events_url":"https://api.github.com/users/AlbertMukhammadiev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-15T19:04:22Z","updated_at":"2016-11-28T14:12:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae2b1a46434e1cb605d65d254c4321d5af9cd813","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/46/commits","review_comments_url":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/46/comments","review_comment_url":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlbertMukhammadiev/University/issues/46/comments","statuses_url":"https://api.github.com/repos/AlbertMukhammadiev/University/statuses/1cfd9314da45a7177968c247723fc94ca19217d4","head":{"label":"AlbertMukhammadiev:Hw4_simpleEditor","ref":"Hw4_simpleEditor","sha":"1cfd9314da45a7177968c247723fc94ca19217d4","user":{"login":"AlbertMukhammadiev","id":15523700,"avatar_url":"https://avatars.githubusercontent.com/u/15523700?v=3","gravatar_id":"","url":"https://api.github.com/users/AlbertMukhammadiev","html_url":"https://github.com/AlbertMukhammadiev","followers_url":"https://api.github.com/users/AlbertMukhammadiev/followers","following_url":"https://api.github.com/users/AlbertMukhammadiev/following{/other_user}","gists_url":"https://api.github.com/users/AlbertMukhammadiev/gists{/gist_id}","starred_url":"https://api.github.com/users/AlbertMukhammadiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlbertMukhammadiev/subscriptions","organizations_url":"https://api.github.com/users/AlbertMukhammadiev/orgs","repos_url":"https://api.github.com/users/AlbertMukhammadiev/repos","events_url":"https://api.github.com/users/AlbertMukhammadiev/events{/privacy}","received_events_url":"https://api.github.com/users/AlbertMukhammadiev/received_events","type":"User","site_admin":false},"repo":{"id":45309410,"name":"University","full_name":"AlbertMukhammadiev/University","owner":{"login":"AlbertMukhammadiev","id":15523700,"avatar_url":"https://avatars.githubusercontent.com/u/15523700?v=3","gravatar_id":"","url":"https://api.github.com/users/AlbertMukhammadiev","html_url":"https://github.com/AlbertMukhammadiev","followers_url":"https://api.github.com/users/AlbertMukhammadiev/followers","following_url":"https://api.github.com/users/AlbertMukhammadiev/following{/other_user}","gists_url":"https://api.github.com/users/AlbertMukhammadiev/gists{/gist_id}","starred_url":"https://api.github.com/users/AlbertMukhammadiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlbertMukhammadiev/subscriptions","organizations_url":"https://api.github.com/users/AlbertMukhammadiev/orgs","repos_url":"https://api.github.com/users/AlbertMukhammadiev/repos","events_url":"https://api.github.com/users/AlbertMukhammadiev/events{/privacy}","received_events_url":"https://api.github.com/users/AlbertMukhammadiev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlbertMukhammadiev/University","description":null,"fork":false,"url":"https://api.github.com/repos/AlbertMukhammadiev/University","forks_url":"https://api.github.com/repos/AlbertMukhammadiev/University/forks","keys_url":"https://api.github.com/repos/AlbertMukhammadiev/University/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlbertMukhammadiev/University/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlbertMukhammadiev/University/teams","hooks_url":"https://api.github.com/repos/AlbertMukhammadiev/University/hooks","issue_events_url":"https://api.github.com/repos/AlbertMukhammadiev/University/issues/events{/number}","events_url":"https://api.github.com/repos/AlbertMukhammadiev/University/events","assignees_url":"https://api.github.com/repos/AlbertMukhammadiev/University/assignees{/user}","branches_url":"https://api.github.com/repos/AlbertMukhammadiev/University/branches{/branch}","tags_url":"https://api.github.com/repos/AlbertMukhammadiev/University/tags","blobs_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlbertMukhammadiev/University/statuses/{sha}","languages_url":"https://api.github.com/repos/AlbertMukhammadiev/University/languages","stargazers_url":"https://api.github.com/repos/AlbertMukhammadiev/University/stargazers","contributors_url":"https://api.github.com/repos/AlbertMukhammadiev/University/contributors","subscribers_url":"https://api.github.com/repos/AlbertMukhammadiev/University/subscribers","subscription_url":"https://api.github.com/repos/AlbertMukhammadiev/University/subscription","commits_url":"https://api.github.com/repos/AlbertMukhammadiev/University/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlbertMukhammadiev/University/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlbertMukhammadiev/University/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlbertMukhammadiev/University/contents/{+path}","compare_url":"https://api.github.com/repos/AlbertMukhammadiev/University/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlbertMukhammadiev/University/merges","archive_url":"https://api.github.com/repos/AlbertMukhammadiev/University/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlbertMukhammadiev/University/downloads","issues_url":"https://api.github.com/repos/AlbertMukhammadiev/University/issues{/number}","pulls_url":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls{/number}","milestones_url":"https://api.github.com/repos/AlbertMukhammadiev/University/milestones{/number}","notifications_url":"https://api.github.com/repos/AlbertMukhammadiev/University/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlbertMukhammadiev/University/labels{/name}","releases_url":"https://api.github.com/repos/AlbertMukhammadiev/University/releases{/id}","deployments_url":"https://api.github.com/repos/AlbertMukhammadiev/University/deployments","created_at":"2015-10-31T16:35:03Z","updated_at":"2016-05-25T15:26:41Z","pushed_at":"2016-10-15T19:04:22Z","git_url":"git://github.com/AlbertMukhammadiev/University.git","ssh_url":"git@github.com:AlbertMukhammadiev/University.git","clone_url":"https://github.com/AlbertMukhammadiev/University.git","svn_url":"https://github.com/AlbertMukhammadiev/University","homepage":null,"size":311,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":11,"forks":1,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"AlbertMukhammadiev:master","ref":"master","sha":"6cd36038577481906e14e6ce20cabbd814d04ea6","user":{"login":"AlbertMukhammadiev","id":15523700,"avatar_url":"https://avatars.githubusercontent.com/u/15523700?v=3","gravatar_id":"","url":"https://api.github.com/users/AlbertMukhammadiev","html_url":"https://github.com/AlbertMukhammadiev","followers_url":"https://api.github.com/users/AlbertMukhammadiev/followers","following_url":"https://api.github.com/users/AlbertMukhammadiev/following{/other_user}","gists_url":"https://api.github.com/users/AlbertMukhammadiev/gists{/gist_id}","starred_url":"https://api.github.com/users/AlbertMukhammadiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlbertMukhammadiev/subscriptions","organizations_url":"https://api.github.com/users/AlbertMukhammadiev/orgs","repos_url":"https://api.github.com/users/AlbertMukhammadiev/repos","events_url":"https://api.github.com/users/AlbertMukhammadiev/events{/privacy}","received_events_url":"https://api.github.com/users/AlbertMukhammadiev/received_events","type":"User","site_admin":false},"repo":{"id":45309410,"name":"University","full_name":"AlbertMukhammadiev/University","owner":{"login":"AlbertMukhammadiev","id":15523700,"avatar_url":"https://avatars.githubusercontent.com/u/15523700?v=3","gravatar_id":"","url":"https://api.github.com/users/AlbertMukhammadiev","html_url":"https://github.com/AlbertMukhammadiev","followers_url":"https://api.github.com/users/AlbertMukhammadiev/followers","following_url":"https://api.github.com/users/AlbertMukhammadiev/following{/other_user}","gists_url":"https://api.github.com/users/AlbertMukhammadiev/gists{/gist_id}","starred_url":"https://api.github.com/users/AlbertMukhammadiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlbertMukhammadiev/subscriptions","organizations_url":"https://api.github.com/users/AlbertMukhammadiev/orgs","repos_url":"https://api.github.com/users/AlbertMukhammadiev/repos","events_url":"https://api.github.com/users/AlbertMukhammadiev/events{/privacy}","received_events_url":"https://api.github.com/users/AlbertMukhammadiev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlbertMukhammadiev/University","description":null,"fork":false,"url":"https://api.github.com/repos/AlbertMukhammadiev/University","forks_url":"https://api.github.com/repos/AlbertMukhammadiev/University/forks","keys_url":"https://api.github.com/repos/AlbertMukhammadiev/University/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlbertMukhammadiev/University/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlbertMukhammadiev/University/teams","hooks_url":"https://api.github.com/repos/AlbertMukhammadiev/University/hooks","issue_events_url":"https://api.github.com/repos/AlbertMukhammadiev/University/issues/events{/number}","events_url":"https://api.github.com/repos/AlbertMukhammadiev/University/events","assignees_url":"https://api.github.com/repos/AlbertMukhammadiev/University/assignees{/user}","branches_url":"https://api.github.com/repos/AlbertMukhammadiev/University/branches{/branch}","tags_url":"https://api.github.com/repos/AlbertMukhammadiev/University/tags","blobs_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlbertMukhammadiev/University/statuses/{sha}","languages_url":"https://api.github.com/repos/AlbertMukhammadiev/University/languages","stargazers_url":"https://api.github.com/repos/AlbertMukhammadiev/University/stargazers","contributors_url":"https://api.github.com/repos/AlbertMukhammadiev/University/contributors","subscribers_url":"https://api.github.com/repos/AlbertMukhammadiev/University/subscribers","subscription_url":"https://api.github.com/repos/AlbertMukhammadiev/University/subscription","commits_url":"https://api.github.com/repos/AlbertMukhammadiev/University/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlbertMukhammadiev/University/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlbertMukhammadiev/University/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlbertMukhammadiev/University/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlbertMukhammadiev/University/contents/{+path}","compare_url":"https://api.github.com/repos/AlbertMukhammadiev/University/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlbertMukhammadiev/University/merges","archive_url":"https://api.github.com/repos/AlbertMukhammadiev/University/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlbertMukhammadiev/University/downloads","issues_url":"https://api.github.com/repos/AlbertMukhammadiev/University/issues{/number}","pulls_url":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls{/number}","milestones_url":"https://api.github.com/repos/AlbertMukhammadiev/University/milestones{/number}","notifications_url":"https://api.github.com/repos/AlbertMukhammadiev/University/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlbertMukhammadiev/University/labels{/name}","releases_url":"https://api.github.com/repos/AlbertMukhammadiev/University/releases{/id}","deployments_url":"https://api.github.com/repos/AlbertMukhammadiev/University/deployments","created_at":"2015-10-31T16:35:03Z","updated_at":"2016-05-25T15:26:41Z","pushed_at":"2016-10-15T19:04:22Z","git_url":"git://github.com/AlbertMukhammadiev/University.git","ssh_url":"git@github.com:AlbertMukhammadiev/University.git","clone_url":"https://github.com/AlbertMukhammadiev/University.git","svn_url":"https://github.com/AlbertMukhammadiev/University","homepage":null,"size":311,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":11,"forks":1,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/46"},"html":{"href":"https://github.com/AlbertMukhammadiev/University/pull/46"},"issue":{"href":"https://api.github.com/repos/AlbertMukhammadiev/University/issues/46"},"comments":{"href":"https://api.github.com/repos/AlbertMukhammadiev/University/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlbertMukhammadiev/University/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/AlbertMukhammadiev/University/statuses/1cfd9314da45a7177968c247723fc94ca19217d4"}}}}
{"actor":{"display_login":"yurii-litvinov"}}