{"action":"created","comment":{"url":"https://api.github.com/repos/adam987/git-example/pulls/comments/75019769","id":75019769,"diff_hunk":"@@ -0,0 +1,153 @@\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+\n+namespace Kalkulator_kredytowy\n+{\n+    public partial class Form1 : Form\n+    {\n+\n+        public Form1()\n+        {\n+            InitializeComponent();\n+        }\n+\n+        private void Form1_Load_1(object sender, EventArgs e)\n+        {\n+            \n+        }\n+        private void generowanie_harmonogramu_Click(object sender, EventArgs e)\n+        {\n+            \n+            if(akceptacja_1.Visible == true& akceptacja_2.Visible == true& akceptacja_3.Visible == true& akceptacja_4.Visible == true)\n+            {\n+                string kwota, oprocentowanie_kredytu;\n+                int raty, kwota_raty;\n+                oprocentowanie_kredytu = oprocentowanie.Text;\n+                kwota = kwota_kredytu.Text;\n+                raty = Convert.ToInt32(liczba_rat.Value);\n+                kwota_raty = Convert.ToInt32(kwota) / raty;\n+                for (var i = 1; i < raty + 1; i++)\n+                {\n+                    int zadluzenie, odsetki_umowne, lacznie, odsetki_razem;\n+                    odsetki_umowne = 0;\n+                    odsetki_razem = odsetki_umowne;\n+                    zadluzenie = Convert.ToInt32(kwota) - kwota_raty * (i - 1);\n+                    odsetki_umowne = Convert.ToInt32(oprocentowanie_kredytu) * (zadluzenie / 100);\n+                    odsetki_razem = odsetki_razem + odsetki_umowne;\n+                    lacznie = kwota_raty + odsetki_umowne;\n+                    var item = new ListViewItem($\"{i}\");\n+                    item.SubItems.Add(Convert.ToString(zadluzenie + \" zł\"));\n+                    item.SubItems.Add(Convert.ToString(odsetki_umowne + \" zł\"));\n+                    item.SubItems.Add(Convert.ToString(kwota_raty + \" zł\"));\n+                    item.SubItems.Add(Convert.ToString(lacznie + \" zł\"));\n+\n+                    harmonogram.Items.Add(item);\n+                }\n+                harmonogram.Visible = true;\n+            }\n+            else\n+            {\n+                MessageBox.Show(\"Uzupełnij dane wyjściowee!\",\"Uzupełnij dane\",MessageBoxButtons.OK,MessageBoxIcon.Stop);\n+            }\n+            \n+        }\n+        private void kwota_kredytu_Enter(object sender, EventArgs e)\n+        {\n+            \n+        }\n+\n+        private void kwota_kredytu_MouseLeave(object sender, EventArgs e)\n+        {\n+            \n+        }\n+\n+        private void oprocentowanie_MouseClick(object sender, MouseEventArgs e)\n+        {\n+            int result;\n+            bool zbadaj = int.TryParse(kwota_kredytu.Text.ToString(), out result);\n+            if (zbadaj == true)\n+            {\n+                akceptacja_1.Visible = true;\n+            }\n+            else\n+            {\n+                MessageBox.Show(\"Wpisz kwotę kredytu\", \"Informacja\", MessageBoxButtons.OK, MessageBoxIcon.Information);\n+                akceptacja_1.Visible = false;\n+            }\n+        }\n+\n+        private void liczba_rat_MouseClick(object sender, MouseEventArgs e)\n+        {\n+            int result2;\n+            bool zbadaj2 = int.TryParse(kwota_kredytu.Text.ToString(), out result2);\n+            if (zbadaj2 == true)\n+            {\n+                akceptacja_2.Visible = true;\n+            }\n+            else\n+            {\n+                MessageBox.Show(\"Wpisz oprocentowanie kredytu\", \"Informacja\", MessageBoxButtons.OK, MessageBoxIcon.Information);\n+                akceptacja_2.Visible = false;\n+            }\n+        }\n+\n+        private void liczba_rat_ValueChanged(object sender, EventArgs e)\n+        {\n+            if (liczba_rat.Value > 0)\n+            {\n+                akceptacja_3.Visible = true;\n+            }\n+            else\n+            {\n+                akceptacja_3.Visible = false;\n+            }\n+        }\n+\n+        private void rodzaj_rat_TextChanged(object sender, EventArgs e)\n+        { \n+            if(rodzaj_rat.Text==\"Raty malejące\")\n+            {\n+                akceptacja_4.Visible = true;\n+            }\n+            else\n+            {\n+                akceptacja_4.Visible = false;\n+                MessageBox.Show(\"Program w budowie.. Opcja niedostępna!\", \"Program w budowie..\", MessageBoxButtons.OK, MessageBoxIcon.Information);\n+            }\n+        }\n+\n+        private void liczba_rat_ValueChanged_1(object sender, EventArgs e)\n+        {","path":"Source/Kalkulator kredytowy/Form1.cs","position":127,"original_position":127,"commit_id":"ecc24e32bbd555f97ef66341f2d7a5b88dfb8724","original_commit_id":"ecc24e32bbd555f97ef66341f2d7a5b88dfb8724","user":{"login":"adam987","id":11967533,"avatar_url":"https://avatars.githubusercontent.com/u/11967533?v=3","gravatar_id":"","url":"https://api.github.com/users/adam987","html_url":"https://github.com/adam987","followers_url":"https://api.github.com/users/adam987/followers","following_url":"https://api.github.com/users/adam987/following{/other_user}","gists_url":"https://api.github.com/users/adam987/gists{/gist_id}","starred_url":"https://api.github.com/users/adam987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam987/subscriptions","organizations_url":"https://api.github.com/users/adam987/orgs","repos_url":"https://api.github.com/users/adam987/repos","events_url":"https://api.github.com/users/adam987/events{/privacy}","received_events_url":"https://api.github.com/users/adam987/received_events","type":"User","site_admin":false},"body":"Unikaj takich \"numerowanych\" nazw - końcówka 1, 2, 3, 4 raczej niewiele mówi.","created_at":"2016-08-16T21:04:03Z","updated_at":"2016-08-16T21:04:03Z","html_url":"https://github.com/adam987/git-example/pull/2#discussion_r75019769","pull_request_url":"https://api.github.com/repos/adam987/git-example/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/adam987/git-example/pulls/comments/75019769"},"html":{"href":"https://github.com/adam987/git-example/pull/2#discussion_r75019769"},"pull_request":{"href":"https://api.github.com/repos/adam987/git-example/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/adam987/git-example/pulls/2","id":81541796,"html_url":"https://github.com/adam987/git-example/pull/2","diff_url":"https://github.com/adam987/git-example/pull/2.diff","patch_url":"https://github.com/adam987/git-example/pull/2.patch","issue_url":"https://api.github.com/repos/adam987/git-example/issues/2","number":2,"state":"open","locked":false,"title":"Kalkulator","user":{"login":"adam987","id":11967533,"avatar_url":"https://avatars.githubusercontent.com/u/11967533?v=3","gravatar_id":"","url":"https://api.github.com/users/adam987","html_url":"https://github.com/adam987","followers_url":"https://api.github.com/users/adam987/followers","following_url":"https://api.github.com/users/adam987/following{/other_user}","gists_url":"https://api.github.com/users/adam987/gists{/gist_id}","starred_url":"https://api.github.com/users/adam987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam987/subscriptions","organizations_url":"https://api.github.com/users/adam987/orgs","repos_url":"https://api.github.com/users/adam987/repos","events_url":"https://api.github.com/users/adam987/events{/privacy}","received_events_url":"https://api.github.com/users/adam987/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-16T20:47:20Z","updated_at":"2016-08-16T21:04:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb8e7d156d8d4f44a095dc05732706c26122592f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/adam987/git-example/pulls/2/commits","review_comments_url":"https://api.github.com/repos/adam987/git-example/pulls/2/comments","review_comment_url":"https://api.github.com/repos/adam987/git-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adam987/git-example/issues/2/comments","statuses_url":"https://api.github.com/repos/adam987/git-example/statuses/ecc24e32bbd555f97ef66341f2d7a5b88dfb8724","head":{"label":"adam987:kalkulator","ref":"kalkulator","sha":"ecc24e32bbd555f97ef66341f2d7a5b88dfb8724","user":{"login":"adam987","id":11967533,"avatar_url":"https://avatars.githubusercontent.com/u/11967533?v=3","gravatar_id":"","url":"https://api.github.com/users/adam987","html_url":"https://github.com/adam987","followers_url":"https://api.github.com/users/adam987/followers","following_url":"https://api.github.com/users/adam987/following{/other_user}","gists_url":"https://api.github.com/users/adam987/gists{/gist_id}","starred_url":"https://api.github.com/users/adam987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam987/subscriptions","organizations_url":"https://api.github.com/users/adam987/orgs","repos_url":"https://api.github.com/users/adam987/repos","events_url":"https://api.github.com/users/adam987/events{/privacy}","received_events_url":"https://api.github.com/users/adam987/received_events","type":"User","site_admin":false},"repo":{"id":65129200,"name":"git-example","full_name":"adam987/git-example","owner":{"login":"adam987","id":11967533,"avatar_url":"https://avatars.githubusercontent.com/u/11967533?v=3","gravatar_id":"","url":"https://api.github.com/users/adam987","html_url":"https://github.com/adam987","followers_url":"https://api.github.com/users/adam987/followers","following_url":"https://api.github.com/users/adam987/following{/other_user}","gists_url":"https://api.github.com/users/adam987/gists{/gist_id}","starred_url":"https://api.github.com/users/adam987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam987/subscriptions","organizations_url":"https://api.github.com/users/adam987/orgs","repos_url":"https://api.github.com/users/adam987/repos","events_url":"https://api.github.com/users/adam987/events{/privacy}","received_events_url":"https://api.github.com/users/adam987/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adam987/git-example","description":"Example git repository","fork":false,"url":"https://api.github.com/repos/adam987/git-example","forks_url":"https://api.github.com/repos/adam987/git-example/forks","keys_url":"https://api.github.com/repos/adam987/git-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adam987/git-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adam987/git-example/teams","hooks_url":"https://api.github.com/repos/adam987/git-example/hooks","issue_events_url":"https://api.github.com/repos/adam987/git-example/issues/events{/number}","events_url":"https://api.github.com/repos/adam987/git-example/events","assignees_url":"https://api.github.com/repos/adam987/git-example/assignees{/user}","branches_url":"https://api.github.com/repos/adam987/git-example/branches{/branch}","tags_url":"https://api.github.com/repos/adam987/git-example/tags","blobs_url":"https://api.github.com/repos/adam987/git-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adam987/git-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adam987/git-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/adam987/git-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adam987/git-example/statuses/{sha}","languages_url":"https://api.github.com/repos/adam987/git-example/languages","stargazers_url":"https://api.github.com/repos/adam987/git-example/stargazers","contributors_url":"https://api.github.com/repos/adam987/git-example/contributors","subscribers_url":"https://api.github.com/repos/adam987/git-example/subscribers","subscription_url":"https://api.github.com/repos/adam987/git-example/subscription","commits_url":"https://api.github.com/repos/adam987/git-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/adam987/git-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/adam987/git-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/adam987/git-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/adam987/git-example/contents/{+path}","compare_url":"https://api.github.com/repos/adam987/git-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adam987/git-example/merges","archive_url":"https://api.github.com/repos/adam987/git-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adam987/git-example/downloads","issues_url":"https://api.github.com/repos/adam987/git-example/issues{/number}","pulls_url":"https://api.github.com/repos/adam987/git-example/pulls{/number}","milestones_url":"https://api.github.com/repos/adam987/git-example/milestones{/number}","notifications_url":"https://api.github.com/repos/adam987/git-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adam987/git-example/labels{/name}","releases_url":"https://api.github.com/repos/adam987/git-example/releases{/id}","deployments_url":"https://api.github.com/repos/adam987/git-example/deployments","created_at":"2016-08-07T11:11:05Z","updated_at":"2016-08-07T11:15:27Z","pushed_at":"2016-08-16T20:47:20Z","git_url":"git://github.com/adam987/git-example.git","ssh_url":"git@github.com:adam987/git-example.git","clone_url":"https://github.com/adam987/git-example.git","svn_url":"https://github.com/adam987/git-example","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"adam987:master","ref":"master","sha":"22599bdc12cce2427b23f1ffe45bb21cb564a999","user":{"login":"adam987","id":11967533,"avatar_url":"https://avatars.githubusercontent.com/u/11967533?v=3","gravatar_id":"","url":"https://api.github.com/users/adam987","html_url":"https://github.com/adam987","followers_url":"https://api.github.com/users/adam987/followers","following_url":"https://api.github.com/users/adam987/following{/other_user}","gists_url":"https://api.github.com/users/adam987/gists{/gist_id}","starred_url":"https://api.github.com/users/adam987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam987/subscriptions","organizations_url":"https://api.github.com/users/adam987/orgs","repos_url":"https://api.github.com/users/adam987/repos","events_url":"https://api.github.com/users/adam987/events{/privacy}","received_events_url":"https://api.github.com/users/adam987/received_events","type":"User","site_admin":false},"repo":{"id":65129200,"name":"git-example","full_name":"adam987/git-example","owner":{"login":"adam987","id":11967533,"avatar_url":"https://avatars.githubusercontent.com/u/11967533?v=3","gravatar_id":"","url":"https://api.github.com/users/adam987","html_url":"https://github.com/adam987","followers_url":"https://api.github.com/users/adam987/followers","following_url":"https://api.github.com/users/adam987/following{/other_user}","gists_url":"https://api.github.com/users/adam987/gists{/gist_id}","starred_url":"https://api.github.com/users/adam987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam987/subscriptions","organizations_url":"https://api.github.com/users/adam987/orgs","repos_url":"https://api.github.com/users/adam987/repos","events_url":"https://api.github.com/users/adam987/events{/privacy}","received_events_url":"https://api.github.com/users/adam987/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adam987/git-example","description":"Example git repository","fork":false,"url":"https://api.github.com/repos/adam987/git-example","forks_url":"https://api.github.com/repos/adam987/git-example/forks","keys_url":"https://api.github.com/repos/adam987/git-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adam987/git-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adam987/git-example/teams","hooks_url":"https://api.github.com/repos/adam987/git-example/hooks","issue_events_url":"https://api.github.com/repos/adam987/git-example/issues/events{/number}","events_url":"https://api.github.com/repos/adam987/git-example/events","assignees_url":"https://api.github.com/repos/adam987/git-example/assignees{/user}","branches_url":"https://api.github.com/repos/adam987/git-example/branches{/branch}","tags_url":"https://api.github.com/repos/adam987/git-example/tags","blobs_url":"https://api.github.com/repos/adam987/git-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adam987/git-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adam987/git-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/adam987/git-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adam987/git-example/statuses/{sha}","languages_url":"https://api.github.com/repos/adam987/git-example/languages","stargazers_url":"https://api.github.com/repos/adam987/git-example/stargazers","contributors_url":"https://api.github.com/repos/adam987/git-example/contributors","subscribers_url":"https://api.github.com/repos/adam987/git-example/subscribers","subscription_url":"https://api.github.com/repos/adam987/git-example/subscription","commits_url":"https://api.github.com/repos/adam987/git-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/adam987/git-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/adam987/git-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/adam987/git-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/adam987/git-example/contents/{+path}","compare_url":"https://api.github.com/repos/adam987/git-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adam987/git-example/merges","archive_url":"https://api.github.com/repos/adam987/git-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adam987/git-example/downloads","issues_url":"https://api.github.com/repos/adam987/git-example/issues{/number}","pulls_url":"https://api.github.com/repos/adam987/git-example/pulls{/number}","milestones_url":"https://api.github.com/repos/adam987/git-example/milestones{/number}","notifications_url":"https://api.github.com/repos/adam987/git-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adam987/git-example/labels{/name}","releases_url":"https://api.github.com/repos/adam987/git-example/releases{/id}","deployments_url":"https://api.github.com/repos/adam987/git-example/deployments","created_at":"2016-08-07T11:11:05Z","updated_at":"2016-08-07T11:15:27Z","pushed_at":"2016-08-16T20:47:20Z","git_url":"git://github.com/adam987/git-example.git","ssh_url":"git@github.com:adam987/git-example.git","clone_url":"https://github.com/adam987/git-example.git","svn_url":"https://github.com/adam987/git-example","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adam987/git-example/pulls/2"},"html":{"href":"https://github.com/adam987/git-example/pull/2"},"issue":{"href":"https://api.github.com/repos/adam987/git-example/issues/2"},"comments":{"href":"https://api.github.com/repos/adam987/git-example/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/adam987/git-example/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/adam987/git-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adam987/git-example/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/adam987/git-example/statuses/ecc24e32bbd555f97ef66341f2d7a5b88dfb8724"}}}}
{"actor":{"display_login":"adam987"}}