{"id":255,"date":"2014-06-11T16:09:57","date_gmt":"2014-06-11T07:09:57","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=255"},"modified":"2014-06-21T07:58:36","modified_gmt":"2014-06-20T22:58:36","slug":"c%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%83%8f%e3%83%b3%e3%83%89%e3%83%a9%e3%81%a8%e3%81%af%e3%81%aa%e3%82%93%e3%81%9e%e3%82%84","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=255","title":{"rendered":"[C#]\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u306f\u306a\u3093\u305e\u3084"},"content":{"rendered":"<p>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u306f\u306a\u3093\u305e\u3084\u3002<\/p>\n<p>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306f\u3001\u30c7\u30ea\u30b2\u30fc\u30c8\u3067\u3059\u3002<br \/>\n(\u30c7\u30ea\u30b2\u30fc\u30c8\u3088\u304f\u5206\u304b\u3089\u306d\u30fc\u3063\u3066\u4eba\u306f<a title=\"[C#]\u30c7\u30ea\u30b2\u30fc\u30c8\u3068\u306f\u306a\u3093\u305e\u3084\" href=\"http:\/\/gomocool.net\/gomokulog\/?p=250\">\u30b3\u30c1\u30e9<\/a>\u3002)<\/p>\n<p>\u767e\u805e\u306f\u4e00\u898b\u306b\u5982\u304b\u305a\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001Windows\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u3001Form\u306b\u30dc\u30bf\u30f3\u3092\u3072\u3068\u3064\u914d\u7f6e\u3057\u3066\u3001\u30dc\u30bf\u30f3\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u306a\u308a\u3057\u3066\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u81ea\u52d5\u751f\u6210\u3057\u3001MessageBox\u3092\u7f6e\u304f\u3002<br \/>\n\u30dc\u30bf\u30f3\u3092\u62bc\u305b\u3070\u3001Hellow\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u304c\u958b\u304f\u3002<\/p>\n<pre class=\"lang:c# decode:true\">        private void button1_Click(object sender, EventArgs e)\r\n        {\r\n           MessageBox.Show(\"Hellow\");\r\n        }<\/pre>\n<p>\u3068\u3053\u308d\u3067\u3001\u3053\u306ebutton1_Click\u30e1\u30bd\u30c3\u30c9\u306f\u306a\u305c\u3001\u52d5\u304f\u306e\u304b\u3002<\/p>\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u53c2\u7167\u3059\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<pre class=\"lang:c# decode:true\">this.button1.Click += new System.EventHandler(this.button1_Click);<\/pre>\n<p>this.button1.Click\u3068\u3084\u3089\u306b EventHandler\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u6e21\u3057\u3066\u3044\u308b\u3002<br \/>\n\u3064\u307e\u308a\u3001button1.Click\u3082EventHandler\u578b\u3092\u53d7\u3051\u53d6\u308c\u308b\u3082\u306e\u3060\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n<p>\u3093\u3067\u3001\u3053\u306eEventHandler\u306f\u306a\u3093\u305e\u3063\u3066\u3053\u3068\u3067\u3055\u3089\u306b\u8ffd\u3044\u304b\u3051\u308b\u3068\u3001<\/p>\n<pre class=\"lang:c# decode:true\">namespace System\r\n{\r\n    \/\/ \u6982\u8981:\r\n    \/\/     \u30a4\u30d9\u30f3\u30c8 \u30c7\u30fc\u30bf\u3092\u6301\u305f\u306a\u3044\u30a4\u30d9\u30f3\u30c8\u3092\u51e6\u7406\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u8868\u3057\u307e\u3059\u3002\r\n    \/\/\r\n    \/\/ \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc:\r\n    \/\/   sender:\r\n    \/\/     \u30a4\u30d9\u30f3\u30c8\u306e\u30bd\u30fc\u30b9\u3002\r\n    \/\/\r\n    \/\/   e:\r\n    \/\/     \u30a4\u30d9\u30f3\u30c8 \u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3057\u3066\u3044\u308b System.EventArgs\u3002\r\n    [Serializable]\r\n    [ComVisible(true)]\r\n    public delegate void EventHandler(object sender, EventArgs e);\r\n}<\/pre>\n<p>namespace System \u306e\u4e0a\u8a18\u307e\u3067\u3084\u3063\u3066\u304d\u305f\u3002<\/p>\n<p>\u8aad\u307f\u89e3\u304f\u3068\u3001EventHandler\u306f\u3001void\u578b\u3067\u3001\u5f15\u6570\u306bobject\u578b\u3068EventArgs\u578b\u3092\u3082\u3064\u3001<strong>delegate<\/strong>\u3068\u3042\u308b\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u30dc\u30bf\u30f3\u306fClick\u3068\u3044\u3046\u30c7\u30ea\u30b2\u30fc\u30c8\u578b\u306e\u5909\u6570\u3092\u6301\u3061\u3001\u305d\u306e\u5909\u6570\u306fEventHandler\u3068\u3044\u3046\u30c7\u30ea\u30b2\u30fc\u30c8\u578b\u3067\u3042\u308b\u3002<\/p>\n<p>\u4ee5\u524d\u306e\u8a18\u4e8b\u3067\u3001\u30c7\u30ea\u30b2\u30fc\u30c8\u3068\u306f\u3001\u95a2\u6570\u3092\u899a\u3048\u3089\u308c\u308b\u5909\u6570\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3042\u308b\u3068\u66f8\u3044\u305f\u3002<\/p>\n<p>\u305f\u3081\u3057\u306b\u3001\u540c\u3058void\u578b\u3067\u3001\u5f15\u6570\u306bobject\u578b\u3068EventArgs\u578b\u3092\u3082\u3064\u95a2\u6570\u3092\u4f5c\u3063\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"lang:c# decode:true\">        private void SayWorld(object sender, EventArgs e)\r\n        {\r\n            MessageBox.Show(\"World\");\r\n        }<\/pre>\n<p>\u305d\u3057\u3066\u3001\u3053\u308c\u3092\u30dc\u30bf\u30f3\u306eClick\u306b\u4ee3\u5165\u3059\u308b\u3002<\/p>\n<pre class=\"lang:c# decode:true\">        public Form1()\r\n        {\r\n            InitializeComponent();\r\n\r\n            this.button1.Click += this.SayWorld;\r\n        }<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001Hellow\u306e\u3042\u3068\u306bWorld\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u3002(+=\u3067\u8ffd\u52a0\u4ee3\u5165\u3057\u305f\u304b\u3089)<\/p>\n<pre class=\"lang:c# decode:true\">\/\/1\r\nthis.button1.Click += this.SayWorld;\r\n\/\/2\r\nthis.button1.Click += new EventHandler(this.SayWorld);<\/pre>\n<p>\u3061\u306a\u307f\u306b\u30011\u306e\u66f8\u304d\u65b9\u30682\u306e\u66f8\u304d\u65b9\u304c\u3042\u308b\u30022\u306f\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u3068\u304d\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u7701\u7565\u3057\u306a\u3044\u66f8\u304d\u65b9\u3002<br \/>\n\u81ea\u524d\u3067\u66f8\u304f\u3068\u304d\u306f1\u3067\u66f8\u304f\u4eba\u304c\u591a\u3044\u30a4\u30e1\u30fc\u30b8\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u305f\u3001\u3053\u306eClick\u3068\u3044\u3046\u95a2\u6570\u306e\u5b9a\u7fa9\u3092\u898b\u308b\u3068\u3001<\/p>\n<pre class=\"lang:c# decode:true\">        \/\/\r\n        \/\/ \u6982\u8981:\r\n        \/\/     \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d\u306b\u767a\u751f\u3057\u307e\u3059\u3002\r\n        public event EventHandler Click;<\/pre>\n<p>\u3068\u3042\u308b\u3002<\/p>\n<p>\u306a\u305c\u3001\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3053\u306eClick\u304c\u5b9f\u884c\u3055\u308c\u308b\u304b\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u30c9\u30ea\u30d6\u30f3\u65b9\u5f0f\u3068\u3044\u3063\u3066\u30fb\u30fb\u30fb\u3001\u307e\u3041\u3001\u305d\u3044\u3046\u3082\u306e\u3060\u3068\u7406\u89e3\u3059\u308b\u3002<\/p>\n<p>\u307e\u3068\u3081\u308b\u3068\u3001<br \/>\n\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u308b\u3068\u3001\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30ea\u30b2\u30fc\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b\u3002<br \/>\n\u30c7\u30ea\u30b2\u30fc\u30c8\u306f\u95a2\u6570\u3092\u899a\u3048\u3089\u308c\u308b\u5909\u6570\u3060\u304b\u3089\u3001\u3042\u3089\u304b\u3058\u3081\u4ee3\u5165\u3055\u308c\u3066\u3044\u305f\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u308b\u3002<br \/>\n\u305f\u3060\u3001\u305d\u308c\u3060\u3051\u306e\u8a71\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u304c\u4f55\u304b<strong>\u3056\u3063\u304f\u308a<\/strong>\u3068\u5206\u304b\u3063\u305f\u3093\u3067\u306f\u306a\u3044\u3060\u308d\u3046\u304b\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u30e9\u30e0\u30c0\u5f0f\u3067\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u304d\u305f\u3044\u5834\u5408\u306f\u3001\u524d\u306b\u66f8\u3044\u305f\u4e0b\u8a18\u306e\u8a18\u4e8b\u304c\u53c2\u8003\u306b\u306a\u308b\u3068\u601d\u3046\u3002<br \/>\n<a title=\"[C#] [\u3056\u3063\u304f\u308a]\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u30e9\u30e0\u30c0\u5f0f\" href=\"http:\/\/gomocool.net\/gomokulog\/?p=114\">\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u30e9\u30e0\u30c0\u5f0f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u306f\u306a\u3093\u305e\u3084\u3002 \u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306f\u3001\u30c7\u30ea\u30b2\u30fc\u30c8\u3067\u3059\u3002 (\u30c7\u30ea\u30b2\u30fc\u30c8\u3088\u304f\u5206\u304b\u3089\u306d\u30fc\u3063\u3066\u4eba\u306f\u30b3\u30c1\u30e9\u3002) \u767e\u805e\u306f\u4e00\u898b\u306b\u5982\u304b\u305a\u3002 \u307e\u305a\u306f\u3001Windows\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u3001Form\u306b\u30dc\u30bf\u30f3\u3092\u3072\u3068\u3064&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=255\" class=\"more-link\">more <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66,20],"tags":[40],"class_list":["post-255","post","type-post","status-publish","format-standard","hentry","category-dot-net","category-csharp","tag-40"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255"}],"version-history":[{"count":7,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/255\/revisions"}],"predecessor-version":[{"id":287,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/255\/revisions\/287"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}