{"id":221275,"date":"2014-04-29T12:01:03","date_gmt":"2014-04-29T08:01:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=221275"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=221275","title":{"rendered":"<span class=\"post_title\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u0433\u0440\u044b \u0434\u043b\u044f Windows Phone 7.5-8.1<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u043d\u0435\u0435 \u044f \u043f\u0438\u0441\u0430\u043b \u043e <a href=\"http:\/\/habrahabr.ru\/post\/206852\/\">\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u0443\u0434\u043e\u043a\u0443 \u0434\u043b\u044f Windows Phone<\/a>. \u041f\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 Windows Phone 7.1 \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u043c\u0430\u043b\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0438 \u043f\u0440\u0435\u043d\u0435\u0431\u0440\u0435\u0433\u0430\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u0430\u0433\u0430\u0437\u0438\u043d Windows Phone.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/2014\/04\/25\/intro.jpg\" alt=\"image\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/2014\/04\/25\/stat.jpg\" alt=\"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 Windows phone 7\"\/><\/p>\n<p>  \u0412\u0438\u0434\u043d\u043e, \u0447\u0442\u043e 7-\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 30% \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a. \u0418\u0434\u0435\u044f \u2014 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0438 \u0434\u043b\u044f 7.1+ \u0432\u0435\u0440\u0441\u0438\u0438.&nbsp;<br \/>  \u0420\u0435\u0448\u0435\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u0422\u043e\u0447\u043a\u0438.&nbsp;  <\/p>\n<blockquote><p>\u0412\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0435 \u0438\u0433\u0440\u0443 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0442\u043e\u0447\u043a\u0443. \u0415\u0441\u043b\u0438 \u0432\u044b\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u0442\u0430\u0440\u0443\u044e \u0442\u043e\u0447\u043a\u0443 \u2014 \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0435\u0442\u0435.&nbsp;  <\/p><\/blockquote>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0430\u044f \u0437\u0430 \u0434\u0435\u043d\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u0438 \u0432\u044b\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<br \/>  <img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/2014\/04\/25\/dots-stat-1.jpg\" alt=\"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f Windows Phone\"\/>  <\/p>\n<h3>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/h3>\n<p>  \u0412\u0430\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0434\u043b\u044f Windows Phone 7 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 Visual Studio <strong>2012<\/strong>. \u0412\u0435\u0440\u0441\u0442\u043a\u0430 \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0432 Blend 2012. \u041f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 13 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u0442\u0443\u0434\u0438\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0442\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439.<br \/>  \u0412\u0441\u0435\u0433\u043e \u0432 \u0438\u0433\u0440\u0435 3 \u044d\u043a\u0440\u0430\u043d\u0430: \u0421\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 (\u043e\u043d \u0436\u0435 \u044d\u043a\u0440\u0430\u043d \u043c\u0435\u0436\u0434\u0443 \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438), \u044d\u043a\u0440\u0430\u043d \u0443\u0440\u043e\u0432\u043d\u044f \u0438 \u044d\u043a\u0440\u0430\u043d \u043a\u043e\u043d\u0446\u0430 \u0438\u0433\u0440\u044b. \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u0421\u0443\u0434\u043e\u043a\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0440\u0435\u0439\u0442\u0438\u043d\u0433 \u0438\u0433\u0440\u043e\u043a\u043e\u0432 (\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u043e\u0447\u0435\u043a). \u0420\u0435\u0439\u0442\u0438\u043d \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0432 \u0432\u0438\u0434\u0435 API (\u0431\u0435\u0437 \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u0439 \u0437\u0430\u0449\u0438\u0442\u044b). \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043e\u0444\u0438\u0441\u0435 \u2014 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0436\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0432 \u043c\u0438\u0440\u0435. \u041f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0434\u0435\u043b\u043e \u0447\u0442\u043e \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442 \u0440\u0435\u0448\u0430\u0435\u0442, \u043d\u043e \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435. \u041f\u0440\u0430\u0432\u0434\u0430!<\/p>\n<h4>Async<\/h4>\n<p>  \u0412 Windows Phone 7 \u043d\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 async await. \u0422\u0430\u043a\u0436\u0435 \u043d\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0443\u043f\u0440\u043e\u0449\u0430\u044e\u0449\u0438\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443. \u0412\u043e\u0442 \u043c\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 packages \u0438\u0437 nuget.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043f\u0438\u0441\u043e\u043a Packages<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;packages&gt;   &lt;package id=&quot;Coding4Fun.Toolkit.Controls&quot; version=&quot;2.0.7&quot; targetFramework=&quot;wp71&quot; \/&gt;   &lt;package id=&quot;GoogleAnalyticsSDK&quot; version=&quot;1.2.01&quot; targetFramework=&quot;wp71&quot; \/&gt;   &lt;package id=&quot;Microsoft.Bcl&quot; version=&quot;1.1.7&quot; targetFramework=&quot;wp71&quot; \/&gt;   &lt;package id=&quot;Microsoft.Bcl.Async&quot; version=&quot;1.0.16&quot; targetFramework=&quot;wp71&quot; \/&gt;   &lt;package id=&quot;Microsoft.Bcl.Build&quot; version=&quot;1.0.14&quot; targetFramework=&quot;wp71&quot; \/&gt;   &lt;package id=&quot;Microsoft.Net.Http&quot; version=&quot;2.1.10&quot; targetFramework=&quot;wp71&quot; \/&gt;   &lt;package id=&quot;Newtonsoft.Json&quot; version=&quot;5.0.7&quot; targetFramework=&quot;wp71&quot; \/&gt;   &lt;package id=&quot;WPtoolkit&quot; version=&quot;4.2013.08.16&quot; targetFramework=&quot;wp71&quot; \/&gt; &lt;\/packages&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 API \u0431\u044b\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d generic \u043a\u043b\u0430\u0441\u0441 (httpclient), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043e\u0447\u0443\u0435\u0442 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0438\u0436\u0435.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Http Client (async await)<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">using (HttpClientHandler handler = new HttpClientHandler()) { \tusing (HttpClient httpClient = new HttpClient(handler)) \t{ \t\tusing (HttpRequestMessage message = new HttpRequestMessage()) \t\t{ \t\t\tmessage.RequestUri = new Uri(url); \t\t\tmessage.Method = postData == null ? HttpMethod.Get : HttpMethod.Post;  \t\t\tif (postData != null) \t\t\t{\t\t\t\t \t\t\t\tmessage.Content = new StringContent(JsonConvert.SerializeObject(postData)); \t\t\t\tmessage.Content.Headers.ContentType = MediaTypeHeaderValue.Parse(&quot;application\/json; charset=utf-8&quot;); \t\t\t}  \t\t\tHttpResponseMessage response = await httpClient.SendAsync(message).ConfigureAwait(false); \t\t\tstring data = await response.Content.ReadAsStringAsync(); \t\t\treturn data; \t\t} \t} } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0420\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0447\u0435\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 <code>Canvas<\/code>. \u041a\u0430\u0436\u0434\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u044d\u0442\u043e <code>Button<\/code> \u0441\u043e \u0441\u0442\u0438\u043b\u0435\u043c. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0442\u043e\u0447\u0435\u043a \u0438 \u0446\u0432\u0435\u0442\u043e\u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f (\u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442\u0441\u044f 4-5 \u0442\u043e\u0447\u0435\u043a \u043e\u0434\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 \u043e\u0447\u0435\u043d\u044c \u0431\u043b\u0438\u0437\u043a\u043e, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0445 \u0438\u0445 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430. \u041a\u043e\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043d\u0438\u0436\u0435. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u0447\u0435\u043a. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0435 \u043c\u0435\u0441\u0442\u043e\u0435, \u0433\u0434\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 (\u0438\u043b\u0438 \u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u0446\u0438\u043a\u043b, \u0442\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435)<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0442\u043e\u0447\u0435\u043a<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">DotInfo dot = new DotInfo(); dot.Color = Colors[Rand.Next(Colors.Count)];  int testX = 0, testY = 0; bool testOk = true;  for (int i = 0; i &lt; 10000; i++) { \ttestX = Rand.Next(Width - ButtonSize); \ttestY = Rand.Next(Heigth - ButtonSize);  \ttestOk = true;  \tforeach (DotInfo dotInfo in _dots) \t{ \t\tRectangle intersect = \t\t\tRectangle.Intersect(new Rectangle(dotInfo.X, dotInfo.Y, ButtonSize, ButtonSize), \t\t\t\tnew Rectangle(testX, testY, ButtonSize, ButtonSize));  \t\tif (intersect != Rectangle.Empty) \t\t\ttestOk = false; \t}  \tif (testOk) \t{ \t\tdot.X = testX; \t\tdot.Y = testY; \t\tbreak; \t} }  if (!testOk) { \tdot.X = Rand.Next(Width - ButtonSize); \tdot.Y = Rand.Next(Heigth - ButtonSize); } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418\u043c\u044f \u0438\u0433\u0440\u043e\u043a\u0430 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442 \u0438\u0437\u0434\u0430\u0442\u0435\u043b\u044f Coding4Fun. \u041a\u0441\u0442\u0430\u0442\u0438 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044b, \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c. (<a href=\"https:\/\/coding4fun.codeplex.com\">Coding4Fun Toolkit<\/a>)<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e \u0432\u0432\u043e\u0434\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">InputPrompt input = new InputPrompt(); input.Completed += UserNameInputOK; input.Title = &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f&quot;; input.Value = UserSettings.Value.UserName; if (string.IsNullOrEmpty(input.Value)) \tinput.Value = &quot;\u0418\u0433\u0440\u043e\u043a &quot; + randName.Next(Int32.MaxValue \/ 2);   input.Show(); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u043f\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u00abIntroduction and best practices for IsolatedStorageSettings\u00bb \u043e\u0442 Nokia. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0438 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u043c.&nbsp;<a href=\"http:\/\/developer.nokia.com\/community\/wiki\/Introduction_and_best_practices_for_IsolatedStorageSettings\">http:\/\/developer.nokia.com\/community\/wiki\/Introduction_and_best_practices_for_IsolatedStorageSettings<\/a><\/p>\n<h3>\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u0430\u0433\u0430\u0437\u0438\u043d<\/h3>\n<p>  \u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 Build \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 (\u043a\u0430\u043a \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0441\u0442\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432)<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/2014\/04\/25\/dashboard.jpg\" alt=\"\u041c\u0430\u0433\u0430\u0437\u0438\u043d Windows Phone\"\/><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0441\u044f \u043f\u0443\u043d\u043a\u0442 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 (\u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435) \u0438 \u043d\u0435 \u0437\u0430\u0445\u043b\u0430\u043c\u043b\u044f\u0442\u044c \u0435\u0433\u043e.<br \/>  <img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/2014\/04\/25\/description.jpg\" alt=\"\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\"\/><br \/>  \u0414\u043e\u0431\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f Windows Phone \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 (\u0432 \u0434\u043e\u0432\u0435\u0441\u043e\u043a \u0432 Windows Store)<br \/>  <img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/2014\/04\/25\/name-reservation.jpg\" alt=\"\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438\"\/><br \/>  \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0434\u043d\u043e \u0438\u043c\u044f \u0434\u043b\u044f \u043e\u0431\u043e\u0438\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/2014\/04\/25\/combine.jpg\" alt=\"\u0438\u043c\u044f \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\"\/><\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f + \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0443\u0448\u043b\u043e 20 \u0447\u0430\u0441\u043e\u0432. \u0421\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u0441\u0442\u0430\u043b\u0430 \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u0439 (\u0432\u0441\u0435\u0433\u043e 30 \u043c\u0438\u043d\u0443\u0442). \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043f\u0440\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 async-await \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Windows Phone 7.5. \u041f\u0430\u0434\u0430\u043b\u0430 \u0441\u0442\u0440\u0430\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 FileNotFound. \u0414\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0440\u0435\u0448\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 BCL \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a Microsoft.<\/p>\n<p>  P.S. \u043c\u043e\u0439 \u0440\u0435\u043a\u043e\u0440\u0434 24 \u0442\u043e\u0447\u043a\u0438, \u0430 \u0443 \u0432\u0430\u0441? (\u043c\u043e\u0436\u043d\u043e \u0432 \u0438\u043c\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c Habr, \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u0443 \u043a\u043e\u0433\u043e \u043f\u0430\u043c\u044f\u0442\u044c \u043b\u0443\u0447\u0448\u0435 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435)<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/2014\/04\/25\/dots-top.jpg\" alt=\"\u0420\u0435\u043a\u043e\u0440\u0434 \u0442\u043e\u0447\u0435\u043a\"\/><\/p>\n<p>  \u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u043e\u0446\u0435\u043d\u043a\u0430\u043c \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435.<\/p>\n<p>  <a href=\"http:\/\/www.windowsphone.com\/ru-ru\/store\/app\/%D1%82%D0%BE%D1%87%D0%BA%D0%B8\/95cf282a-8953-4b54-bc6d-f3cc5fcfc478\"><img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/apps\/windows-phone-store.png\"\/><\/a>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/221275\/\"> http:\/\/habrahabr.ru\/post\/221275\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u043d\u0435\u0435 \u044f \u043f\u0438\u0441\u0430\u043b \u043e <a href=\"http:\/\/habrahabr.ru\/post\/206852\/\">\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u0443\u0434\u043e\u043a\u0443 \u0434\u043b\u044f Windows Phone<\/a>. \u041f\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 Windows Phone 7.1 \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u043c\u0430\u043b\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0438 \u043f\u0440\u0435\u043d\u0435\u0431\u0440\u0435\u0433\u0430\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u0430\u0433\u0430\u0437\u0438\u043d Windows Phone.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/oxozle.com\/files\/2014\/04\/25\/intro.jpg\" alt=\"image\"\/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-221275","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/221275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221275"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/221275\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}