${iServer2_Theme_ThemeResult_Title}

${iServer2_Theme_ThemeResult_Description}

        /// <summary>${iServer2_ThemeResult_method_FromJson_D}</summary>
        /// <returns>${iServer2_ThemeResult_method_FromJson_return}</returns>
        /// <param name="jsonPrimitive">${iServer2_ThemeResult_method_FromJson_param_jsonObject}</param>
        public static ThemeResult FromJson(JsonPrimitive jsonPrimitive)
        {
            if (jsonPrimitive == null)
            {
                return null;
            }

            string str = jsonPrimitive;
            ThemeResult result = new ThemeResult();
            result.Name = str.Substring(0, str.IndexOf(","));
            result.Key = str.Substring(str.IndexOf(",") + 1, str.Length - str.IndexOf(",") - 1);
            return result;
        }
        private void request_Completed(object sender, RequestEventArgs e)
        {
            JsonPrimitive jsonPrimitive = (JsonPrimitive)JsonObject.Parse(e.Result);
            ThemeResult result = ThemeResult.FromJson(jsonPrimitive);

            LastResult = result;
            ThemeEventArgs args = new ThemeEventArgs(result, e.Result, e.UserState);
            OnProcessCompleted(args);
        }
 /// <summary>${iServer2_ThemeEventArgs_constructor_None_D}</summary>
 public ThemeEventArgs(ThemeResult result, string originResult, object token)
     : base(token)
 {
     Result = result;
     OriginResult = originResult;
 }