{"id":155,"date":"2019-04-29T22:43:27","date_gmt":"2019-04-29T13:43:27","guid":{"rendered":"http:\/\/192.168.219.207\/?p=155"},"modified":"2020-04-16T23:48:48","modified_gmt":"2020-04-16T14:48:48","slug":"c-arsetting","status":"publish","type":"post","link":"https:\/\/tindevil.com\/?p=155","title":{"rendered":"[C#] arSetting"},"content":{"rendered":"\n<pre class=\"wp-block-verse\">API Document :  <a href=\"http:\/\/192.168.219.207\/Document\/api\/arUtil.Setting.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (\uc0c8\ud0ed\uc73c\ub85c \uc5f4\uae30)\">http:\/\/192.168.219.207\/Document\/api\/arUtil.Setting.html<\/a> <\/pre>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"[SIMPLE C#] \ud658\uacbd\uc124\uc815\ud30c\uc77c(XML)\ud30c\uc77c \ub9cc\ub4e4\uae30\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/ahb67uBznPQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">XML\uc744 \uc774\uc6a9\ud558\uc5ec \uc124\uc815\ud30c\uc77c\uc744 \uad6c\uc131 \ud569\ub2c8\ub2e4.<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">\ud504\ub85c\uadf8\ub7a8\uc774 \uc2e4\ud589\ub418\ub294 \uc704\uce58\uc5d0 Setting.xml \ud30c\uc77c\uc774 \uc0dd\uc131 \ub428<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"118\" src=\"http:\/\/192.168.219.207\/wp-content\/uploads\/2020\/02\/image-17.png\" alt=\"\" class=\"wp-image-335\" srcset=\"https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/image-17.png 670w, https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/image-17-300x53.png 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\uae30\ub2a5\uc124\uba85<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\ucd94\uc0c1 \ud074\ub798\uc2a4\uc774\ubbc0\ub85c \ubc18\ub4dc\uc2dc \uc0c1\uc18d\ubc1b\uc544\uc11c \uc0ac\uc6a9 \ud574\uc57c \ud569\ub2c8\ub2e4<\/li><li>AfterLoad(), AfterSave() \ub294 \ubc18\ub4dc\uc2dc Override \ud574\uc11c \uad6c\ud604\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4<\/li><li>\uc124\uc815\uc5d0 \uc0ac\uc6a9\ud558\uace0\uc790\ud558\ub294 \uc18d\uc131\uc744 \ucd94\uac00\ub9cc \ud558\uba74 save\/load \uc2dc\uc5d0 \uc790\ub3d9 \ucc98\ub9ac \ub428<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\uc0d8\ud50c\uc608\uc81c<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"droide\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/\ucd94\uc0c1 \ud074\ub798\uc774\ubbc0\ub85c \ubc18\ub4dc\uc2dc \uc0c1\uc18d\uc744 \ubc1b\uc544\uc57c \ud569\ub2c8\ub2e4.\n\/\/\uc124\uc815\ud30c\uc77c\uc758 \ub0b4\uc6a9\uc740 \ud504\ub85c\uc81d\ud2b8\ub9c8\ub2e4 \ub2e4\ub97c \uc218 \uc788\uc73c\ubbc0\ub85c, save(),load()\ub97c \uc81c\uacf5\npublic class Setting : arUtil.Setting\n{\n \/\/\uc124\uc815\uc5d0 \uc0ac\uc6a9\ud558\uace0\uc790\ud558\ub294 \uc18d\uc131\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.\n\n [Description(\"\ud504\ub85c\uadf8\ub7a8 \uc81c\ubaa9\uc785\ub2c8\ub2e4\"), DisplayName(\"\ud504\ub85c\uadf8\ub7a8\uc81c\ubaa9\")]\n public string ProgramTitle { get; set; }\n\n [Description(\"\ud658\uacbd\uc124\uc815 \uc800\uc7a5 \uc554\ud638 \uc785\ub2c8\ub2e4\"),DisplayName(\"\uc800\uc7a5\uc554\ud638\"),PasswordPropertyText(true)]\n\n public string SavePassword { get; set; }\n\n public override void AfterLoad()\n {\n     \/\/\uc554\ud638\uac00 \uc5c6\ub294 \uacbd\uc6b0 \uae30\ubcf8\uac12 0000\uc73c\ub85c \uc124\uc815\ud568\n     if (SavePassword == \"\") SavePassword = \"0000\"; \n }\n public override void AfterSave()\n {\n     \/\/\uc800\uc7a5 \ud6c4 \ucc98\ub9ac\uc791\uc5c5\n     \/\/(enum \ub370\uc774\ud130\ub294 \uc800\uc7a5\uc2dc \uc624\ub958\uac00 \uc788\uc73c\ubbc0\ub85c AfterSave ,Load \uc5d0\uc11c  \uc9c1\uc811 \ucc98\ub9ac \ud574\uc57c \ud568)\n }\n}\n\n\nprivate void fMain_Load(object sender, EventArgs e)\n {\n     \/\/\uc18d\uc131\uc744 \ucd08\uae30\ud654\n     Pub.setting = new Setting();\n\n     \/\/\uc14b\ud305\uac12 \ubd88\ub7ec\uc624\uae30(\uc2e4\ud589\ud30c\uc77c\uc704\uce58\uc5d0\uc11c setting.xml)\n     Pub.setting.Load(); \n     \n     \/\/\uc18d\uc131 \ubc14\uc778\ub529\n     tbTitle.DataBindings.Add(\"Text\", Pub.setting, \"ProgramTitle\", false, DataSourceUpdateMode.OnPropertyChanged);\n\n     \/\/\uc9c1\uc811 \uac12 \ud45c\uc2dc\n     tbPassword.Text = Pub.setting.SavePassword;\n }\n\n\n\/\/\uc18d\uc131\ud30c\uc77c \uc800\uc7a5\uc2dc (\uc778\ud154\ub9ac\uc13c\uc2a4\uac00 \ub3d9\uc791\ud558\ub2c8 \ucc3e\uae30\uac00 \uc26c\uc6c0)\nPub.setting.ProgramTitle = tbTitle.Text;\nPub.setting.Save();<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\uc0dd\uc131\ub41c \uc124\uc815 \ud30c\uc77c (\uc608\uc2dc)<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"409\" height=\"145\" src=\"http:\/\/192.168.219.207\/wp-content\/uploads\/2020\/02\/image-20.png\" alt=\"\" class=\"wp-image-339\" srcset=\"https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/image-20.png 409w, https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/image-20-300x106.png 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><figcaption>\uc9c0\uc815\ud55c \uc18d\uc131 \uc774\ub984\uc73c\ub85c key\/value \uac12\uc774 \uc124\uc815 \ub429\ub2c8\ub2e4.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\ub2e4\uc6b4\ub85c\ub4dc<\/h3>\n\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/192.168.219.207\/wp-content\/uploads\/2019\/04\/Sample_arSettingv2.zip\"><strong>SOURCE<\/strong> :  Sample_arSettingv2<\/a><a href=\"http:\/\/192.168.219.207\/wp-content\/uploads\/2019\/04\/Sample_arSettingv2.zip\" class=\"wp-block-file__button\" download>\ub2e4\uc6b4\ub85c\ub4dc<\/a><\/div>\n\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/192.168.219.207\/wp-content\/uploads\/2020\/02\/ArSetting.Net4_-1.zip\"><strong>DLL<\/strong> : ArSetting.Net4_-1<\/a><a href=\"http:\/\/192.168.219.207\/wp-content\/uploads\/2020\/02\/ArSetting.Net4_-1.zip\" class=\"wp-block-file__button\" download>\ub2e4\uc6b4\ub85c\ub4dc<\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\ud504\ub85c\uadf8\ub7a8\uc18c\uc2a4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/gitlab.com\/open-class\/arSetting.git\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/gitlab.com\/open-class\/arSetting.git (\uc0c8\ud0ed\uc73c\ub85c \uc5f4\uae30)\">https:\/\/gitlab.com\/open-class\/arSetting.git<\/a><br> \uc18c\uc2a4\ub294 \ucd08\ub300 \uc694\uccad(tindevil@nate.com) \ud558\uc2dc\uba74 \uad8c\ud55c \ub4dc\ub9bd\ub2c8\ub2e4 (\uc0ac\uc6a9\uc790 \ud30c\uc545 \uc6a9)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uc800\uc791\uad8c<\/h3>\n\n\n\n<pre class=\"wp-block-verse\">DLL \uc0ac\uc6a9 \uc81c\ud55c \uc5c6\uc74c<br>\uc18c\uc2a4\uc758 \ubcc0\uacbd\uc740 \uc790\uc720\ub85c\uc6b0\uba70 \uc81c\ud55c \uc5c6\uc774 \uc0ac\uc6a9 \uac00\ub2a5\ud569\ub2c8\ub2e4.(\ub2e4\ub9cc \ucd9c\ucc98 \uacf5\uac1c \uc694\ub9dd)  \ucd9c\ucc98 : tindevil.com \/ tindevil@nate.com<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>API Document : http:\/\/192.168.219.207\/Document\/api\/arUtil.Setting.html XML\uc744 \uc774\uc6a9\ud558\uc5ec \uc124\uc815\ud30c\uc77c\uc744 \uad6c\uc131 \ud569\ub2c8\ub2e4. \ud504\ub85c\uadf8\ub7a8\uc774 \uc2e4\ud589\ub418\ub294 \uc704\uce58\uc5d0 Setting.xml \ud30c\uc77c\uc774 \uc0dd\uc131 \ub428 \uae30\ub2a5\uc124\uba85 \ucd94\uc0c1 \ud074\ub798\uc2a4\uc774\ubbc0\ub85c \ubc18\ub4dc\uc2dc \uc0c1\uc18d\ubc1b\uc544\uc11c \uc0ac\uc6a9 \ud574\uc57c \ud569\ub2c8\ub2e4 AfterLoad(), AfterSave() \ub294 \ubc18\ub4dc\uc2dc Override \ud574\uc11c \uad6c\ud604\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4 \uc124\uc815\uc5d0 \uc0ac\uc6a9\ud558\uace0\uc790\ud558\ub294 \uc18d\uc131\uc744 \ucd94\uac00\ub9cc \ud558\uba74 save\/load \uc2dc\uc5d0 \uc790\ub3d9 \ucc98\ub9ac \ub428 \uc0d8\ud50c\uc608\uc81c \uc0dd\uc131\ub41c \uc124\uc815 \ud30c\uc77c (\uc608\uc2dc) \ub2e4\uc6b4\ub85c\ub4dc \ud504\ub85c\uadf8\ub7a8\uc18c\uc2a4 https:\/\/gitlab.com\/open-class\/arSetting.git \uc18c\uc2a4\ub294 \ucd08\ub300 \uc694\uccad(tindevil@nate.com) \ud558\uc2dc\uba74 \uad8c\ud55c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":285,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[11],"tags":[13,15,14,17],"class_list":["post-155","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-open-source","tag-c","tag-simp","tag-simple-c","tag-17"],"_links":{"self":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=155"}],"version-history":[{"count":34,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":556,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions\/556"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/media\/285"}],"wp:attachment":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}