PageLaunchRight.cs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.ComponentModel;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Runtime.CompilerServices;
  7. using System.Threading;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Markup;
  11. using Microsoft.VisualBasic.CompilerServices;
  12. namespace PCL
  13. {
  14. // Token: 0x0200019D RID: 413
  15. [DesignerGenerated]
  16. public class PageLaunchRight : MyPageRight, IRefreshable, IComponentConnector
  17. {
  18. // Token: 0x060010C0 RID: 4288 RVA: 0x0007AAD8 File Offset: 0x00078CD8
  19. public PageLaunchRight()
  20. {
  21. base.Loaded += delegate(object sender, RoutedEventArgs e)
  22. {
  23. this.Init();
  24. };
  25. base.Loaded += delegate(object sender, RoutedEventArgs e)
  26. {
  27. this.Refresh();
  28. };
  29. this.classMapper = RuntimeHelpers.GetObjectValue(new object());
  30. this._PolicyMapper = new ModLoader.LoaderTask<string, int>("自定义主页获取", new Action<ModLoader.LoaderTask<string, int>>(this.OnlineLoaderSub), null, ThreadPriority.Normal)
  31. {
  32. ReloadTimeout = 600000
  33. };
  34. this.m_OrderMapper = -1;
  35. this._ProducerMapper = RuntimeHelpers.GetObjectValue(new object());
  36. this.InitializeComponent();
  37. }
  38. // Token: 0x060010C1 RID: 4289 RVA: 0x0000A3B2 File Offset: 0x000085B2
  39. private void Init()
  40. {
  41. this.PanBack.ScrollToHome();
  42. base.PanScroll = this.PanBack;
  43. this.PanLog.Visibility = (ModBase._TokenRepository ? Visibility.Visible : Visibility.Collapsed);
  44. this.PanHint.Visibility = Visibility.Collapsed;
  45. }
  46. // Token: 0x060010C2 RID: 4290 RVA: 0x0000A3ED File Offset: 0x000085ED
  47. private void Refresh()
  48. {
  49. ModBase.RunInNewThread(delegate
  50. {
  51. try
  52. {
  53. object obj = this.classMapper;
  54. ObjectFlowControl.CheckForSyncLockOnValueType(obj);
  55. lock (obj)
  56. {
  57. this.RefreshReal();
  58. }
  59. }
  60. catch (Exception ex)
  61. {
  62. ModBase.Log(ex, "加载 PCL 主页自定义信息失败", ModBase.LogLevel.Msgbox, "出现错误");
  63. }
  64. }, string.Format("刷新自定义主页 #{0}", ModBase.GetUuid()), ThreadPriority.Normal);
  65. }
  66. // Token: 0x060010C3 RID: 4291 RVA: 0x0007AB68 File Offset: 0x00078D68
  67. private void RefreshReal()
  68. {
  69. PageLaunchRight._Closure$__3-0 CS$<>8__locals1 = new PageLaunchRight._Closure$__3-0(CS$<>8__locals1);
  70. CS$<>8__locals1.$VB$Me = this;
  71. CS$<>8__locals1.$VB$Local_Content = "";
  72. object left = ModBase.m_IdentifierRepository.Get("UiCustomType", null);
  73. if (Operators.ConditionalCompareObjectEqual(left, 1, false))
  74. {
  75. ModBase.Log("[Page] 主页自定义数据来源:本地文件", ModBase.LogLevel.Normal, "出现错误");
  76. CS$<>8__locals1.$VB$Local_Content = ModBase.ReadFile(ModBase.Path + "PCL\\Custom.xaml", null);
  77. }
  78. else
  79. {
  80. string text;
  81. if (Operators.ConditionalCompareObjectEqual(left, 2, false))
  82. {
  83. text = Conversions.ToString(ModBase.m_IdentifierRepository.Get("UiCustomNet", null));
  84. }
  85. else
  86. {
  87. if (!Operators.ConditionalCompareObjectEqual(left, 3, false))
  88. {
  89. goto IL_375;
  90. }
  91. object left2 = ModBase.m_IdentifierRepository.Get("UiCustomPreset", null);
  92. if (Operators.ConditionalCompareObjectEqual(left2, 0, false))
  93. {
  94. ModBase.Log("[Page] 主页预设:你知道吗", ModBase.LogLevel.Normal, "出现错误");
  95. CS$<>8__locals1.$VB$Local_Content = "\r\n <local:MyCard Title=\"你知道吗?\" Margin=\"0,0,0,15\">\r\n <TextBlock Margin=\"25,38,23,15\" FontSize=\"13.5\" IsHitTestVisible=\"False\" Text=\"{hint}\" TextWrapping=\"Wrap\" Foreground=\"{DynamicResource ColorBrush1}\" />\r\n <local:MyIconButton Height=\"22\" Width=\"22\" Margin=\"9\" VerticalAlignment=\"Top\" HorizontalAlignment=\"Right\" \r\n EventType=\"刷新主页\" EventData=\"/\"\r\n Logo=\"M875.52 148.48C783.36 56.32 655.36 0 512 0 291.84 0 107.52 138.24 30.72 332.8l122.88 46.08C204.8 230.4 348.16 128 512 128c107.52 0 199.68 40.96 271.36 112.64L640 384h384V0L875.52 148.48zM512 896c-107.52 0-199.68-40.96-271.36-112.64L384 640H0v384l148.48-148.48C240.64 967.68 368.64 1024 512 1024c220.16 0 404.48-138.24 481.28-332.8L870.4 645.12C819.2 793.6 675.84 896 512 896z\" />\r\n </local:MyCard>";
  96. goto IL_375;
  97. }
  98. if (Operators.ConditionalCompareObjectEqual(left2, 1, false))
  99. {
  100. ModBase.Log("[Page] 主页预设:回声洞", ModBase.LogLevel.Normal, "出现错误");
  101. CS$<>8__locals1.$VB$Local_Content = "\r\n <local:MyCard Title=\"回声洞\" Margin=\"0,0,0,15\">\r\n <TextBlock Margin=\"25,38,23,15\" FontSize=\"13.5\" IsHitTestVisible=\"False\" Text=\"{cave}\" TextWrapping=\"Wrap\" Foreground=\"{DynamicResource ColorBrush1}\" />\r\n <local:MyIconButton Height=\"22\" Width=\"22\" Margin=\"9\" VerticalAlignment=\"Top\" HorizontalAlignment=\"Right\" \r\n EventType=\"刷新主页\" EventData=\"/\"\r\n Logo=\"M875.52 148.48C783.36 56.32 655.36 0 512 0 291.84 0 107.52 138.24 30.72 332.8l122.88 46.08C204.8 230.4 348.16 128 512 128c107.52 0 199.68 40.96 271.36 112.64L640 384h384V0L875.52 148.48zM512 896c-107.52 0-199.68-40.96-271.36-112.64L384 640H0v384l148.48-148.48C240.64 967.68 368.64 1024 512 1024c220.16 0 404.48-138.24 481.28-332.8L870.4 645.12C819.2 793.6 675.84 896 512 896z\" />\r\n </local:MyCard>";
  102. goto IL_375;
  103. }
  104. if (Operators.ConditionalCompareObjectEqual(left2, 2, false))
  105. {
  106. ModBase.Log("[Page] 主页预设:Minecraft 新闻", ModBase.LogLevel.Normal, "出现错误");
  107. text = "http://pcl.mcnews.thestack.top";
  108. }
  109. else if (Operators.ConditionalCompareObjectEqual(left2, 3, false))
  110. {
  111. ModBase.Log("[Page] 主页预设:简单主页", ModBase.LogLevel.Normal, "出现错误");
  112. text = "https://raw.gitcode.com/mfn233/PCL-Mainpage/raw/main/Custom.xaml";
  113. }
  114. else if (Operators.ConditionalCompareObjectEqual(left2, 4, false))
  115. {
  116. ModBase.Log("[Page] 主页预设:每日整合包推荐", ModBase.LogLevel.Normal, "出现错误");
  117. text = "https://pclsub.sodamc.com/";
  118. }
  119. else if (Operators.ConditionalCompareObjectEqual(left2, 5, false))
  120. {
  121. ModBase.Log("[Page] 主页预设:Minecraft 皮肤推荐", ModBase.LogLevel.Normal, "出现错误");
  122. text = "https://forgepixel.com/pcl_sub_file";
  123. }
  124. else if (Operators.ConditionalCompareObjectEqual(left2, 6, false))
  125. {
  126. ModBase.Log("[Page] 主页预设:OpenBMCLAPI 仪表盘 Lite", ModBase.LogLevel.Normal, "出现错误");
  127. text = "https://pcl-bmcl.milu.ink/";
  128. }
  129. else if (Operators.ConditionalCompareObjectEqual(left2, 7, false))
  130. {
  131. ModBase.Log("[Page] 主页预设:主页市场", ModBase.LogLevel.Normal, "出现错误");
  132. text = "https://homepage-market.pages.dev/Custom.xaml";
  133. }
  134. else if (Operators.ConditionalCompareObjectEqual(left2, 8, false))
  135. {
  136. ModBase.Log("[Page] 主页预设:更新日志", ModBase.LogLevel.Normal, "出现错误");
  137. text = "https://updatehomepage.pages.dev/UpdateHomepage.xaml";
  138. }
  139. else if (Operators.ConditionalCompareObjectEqual(left2, 9, false))
  140. {
  141. ModBase.Log("[Page] 主页预设:PCL 新功能说明书", ModBase.LogLevel.Normal, "出现错误");
  142. text = "https://raw.gitcode.com/WForst-Breeze/WhatsNewPCL/raw/main/Custom.xaml";
  143. }
  144. else if (Operators.ConditionalCompareObjectEqual(left2, 10, false))
  145. {
  146. ModBase.Log("[Page] 主页预设:OpenMCIM Dashboard", ModBase.LogLevel.Normal, "出现错误");
  147. text = "https://files.mcimirror.top/PCL";
  148. }
  149. else
  150. {
  151. if (!Operators.ConditionalCompareObjectEqual(left2, 11, false))
  152. {
  153. goto IL_375;
  154. }
  155. ModBase.Log("[Page] 主页预设:杂志主页", ModBase.LogLevel.Normal, "出现错误");
  156. text = "http://pclhomeplazaoss.lingyunawa.top:26994/d/Homepages/Ext1nguisher/Custom.xaml";
  157. }
  158. }
  159. if (!string.IsNullOrWhiteSpace(text))
  160. {
  161. if (!Operators.ConditionalCompareObjectEqual(text, ModBase.m_IdentifierRepository.Get("CacheSavedPageUrl", null), false) || !File.Exists(ModBase.m_DecoratorRepository + "Cache\\Custom.xaml"))
  162. {
  163. ModBase.Log("[Page] 主页自定义数据来源:联网全新下载", ModBase.LogLevel.Normal, "出现错误");
  164. ModMain.Hint("正在加载主页……", ModMain.HintType.Info, true);
  165. ModBase.RunInUiWait(delegate()
  166. {
  167. this.LoadContent("");
  168. });
  169. ModBase.m_IdentifierRepository.Set("CacheSavedPageVersion", "", false, null);
  170. this._PolicyMapper.Start(text, false);
  171. return;
  172. }
  173. ModBase.Log("[Page] 主页自定义数据来源:联网缓存文件", ModBase.LogLevel.Normal, "出现错误");
  174. CS$<>8__locals1.$VB$Local_Content = ModBase.ReadFile(ModBase.m_DecoratorRepository + "Cache\\Custom.xaml", null);
  175. this._PolicyMapper.Start(text, false);
  176. }
  177. }
  178. IL_375:
  179. ModBase.RunInUi(delegate()
  180. {
  181. CS$<>8__locals1.$VB$Me.LoadContent(CS$<>8__locals1.$VB$Local_Content);
  182. }, false);
  183. }
  184. // Token: 0x060010C4 RID: 4292 RVA: 0x0007AEFC File Offset: 0x000790FC
  185. private void OnlineLoaderSub(ModLoader.LoaderTask<string, int> Task)
  186. {
  187. string input = Task.Input;
  188. try
  189. {
  190. string text;
  191. if (input.Contains(".xaml"))
  192. {
  193. text = input.Replace(".xaml", ".xaml.ini");
  194. }
  195. else
  196. {
  197. text = input.BeforeFirst("?", false);
  198. if (!text.EndsWith("/"))
  199. {
  200. text += "/";
  201. }
  202. text += "version";
  203. if (input.Contains("?"))
  204. {
  205. text += input.AfterLast("?", false);
  206. }
  207. }
  208. string text2 = "";
  209. bool flag = true;
  210. try
  211. {
  212. text2 = Conversions.ToString(ModNet.NetGetCodeByRequestOnce(text, null, 10000, false, "", false));
  213. if (text2.Length > 1000)
  214. {
  215. throw new Exception(string.Format("获取的自定义主页版本过长({0} 字符)", text2.Length));
  216. }
  217. string text3 = Conversions.ToString(ModBase.m_IdentifierRepository.Get("CacheSavedPageVersion", null));
  218. if (Operators.CompareString(text2, "", false) != 0 && Operators.CompareString(text3, "", false) != 0 && Operators.CompareString(text2, text3, false) == 0)
  219. {
  220. ModBase.Log(string.Format("[Page] 当前缓存的自定义主页已为最新,当前版本:{0},检查源:{1}", text2, text), ModBase.LogLevel.Normal, "出现错误");
  221. flag = false;
  222. }
  223. else
  224. {
  225. ModBase.Log(string.Format("[Page] 需要下载联网自定义主页,当前版本:{0},检查源:{1}", text2, text), ModBase.LogLevel.Normal, "出现错误");
  226. }
  227. }
  228. catch (Exception ex)
  229. {
  230. ModBase.Log(ex, "联网获取自定义主页版本失败", ModBase.LogLevel.Developer, "出现错误");
  231. ModBase.Log(string.Format("[Page] 无法检查联网自定义主页版本,将直接下载,检查源:{0}", text), ModBase.LogLevel.Normal, "出现错误");
  232. }
  233. if (flag)
  234. {
  235. string text4 = Conversions.ToString(ModNet.NetGetCodeByRequestRetry(input, null, "", false, null, false));
  236. ModBase.Log(string.Format("[Page] 已联网下载自定义主页,内容长度:{0},来源:{1}", text4.Length, input), ModBase.LogLevel.Normal, "出现错误");
  237. ModBase.m_IdentifierRepository.Set("CacheSavedPageUrl", input, false, null);
  238. ModBase.m_IdentifierRepository.Set("CacheSavedPageVersion", text2, false, null);
  239. ModBase.WriteFile(ModBase.m_DecoratorRepository + "Cache\\Custom.xaml", text4, false, null);
  240. }
  241. this.Refresh();
  242. }
  243. catch (Exception ex2)
  244. {
  245. if (Operators.ConditionalCompareObjectEqual(ModBase.m_IdentifierRepository.Get("CacheSavedPageVersion", null), "", false))
  246. {
  247. ModBase.Log(ex2, string.Format("联网下载自定义主页失败({0})", input), ModBase.LogLevel.Msgbox, "出现错误");
  248. }
  249. else
  250. {
  251. ModBase.Log(ex2, string.Format("联网下载自定义主页失败({0})", input), ModBase.LogLevel.Debug, "出现错误");
  252. }
  253. }
  254. }
  255. // Token: 0x060010C5 RID: 4293 RVA: 0x0007B188 File Offset: 0x00079388
  256. public void ForceRefresh()
  257. {
  258. ModBase.Log("[Page] 要求强制刷新自定义主页", ModBase.LogLevel.Normal, "出现错误");
  259. this.ClearCache();
  260. if (ModMain._ProcessIterator._MethodIterator.initializerMap == FormMain.PageType.Launch)
  261. {
  262. this.PanBack.ScrollToHome();
  263. this.Refresh();
  264. return;
  265. }
  266. ModMain._ProcessIterator.PageChange(FormMain.PageType.Launch, FormMain.PageSubType.Default);
  267. }
  268. // Token: 0x060010C6 RID: 4294 RVA: 0x0007B1E0 File Offset: 0x000793E0
  269. private void ClearCache()
  270. {
  271. this.m_OrderMapper = -1;
  272. this._PolicyMapper.Input = "";
  273. ModBase.m_IdentifierRepository.Set("CacheSavedPageUrl", "", false, null);
  274. ModBase.m_IdentifierRepository.Set("CacheSavedPageVersion", "", false, null);
  275. ModBase.Log("[Page] 已清空自定义主页缓存", ModBase.LogLevel.Normal, "出现错误");
  276. }
  277. // Token: 0x060010C7 RID: 4295 RVA: 0x0007B240 File Offset: 0x00079440
  278. private void LoadContent(string Content)
  279. {
  280. object producerMapper = this._ProducerMapper;
  281. ObjectFlowControl.CheckForSyncLockOnValueType(producerMapper);
  282. lock (producerMapper)
  283. {
  284. int hashCode = Content.GetHashCode();
  285. if (hashCode == this.m_OrderMapper)
  286. {
  287. return;
  288. }
  289. this.m_OrderMapper = hashCode;
  290. this.PanCustom.Children.Clear();
  291. if (string.IsNullOrWhiteSpace(Content))
  292. {
  293. ModBase.Log("[Page] 实例化:清空自定义主页 UI,来源为空", ModBase.LogLevel.Normal, "出现错误");
  294. return;
  295. }
  296. Content = "<StackPanel xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" xmlns:local=\"clr-namespace:PCL;assembly=Plain Craft Launcher 2\">" + Content + "</StackPanel>";
  297. Content = ModMain.HelpArgumentReplace(Content);
  298. ModBase.Log(string.Format("[Page] 实例化:加载自定义主页 UI 开始,最终内容长度:{0}", Enumerable.Count<char>(Content)), ModBase.LogLevel.Normal, "出现错误");
  299. try
  300. {
  301. this.PanCustom.Children.Add((UIElement)ModBase.GetObjectFromXML(Content));
  302. }
  303. catch (Exception ex)
  304. {
  305. ModBase.Log("[Page] 加载失败的自定义主页内容:\r\n" + Content, ModBase.LogLevel.Normal, "出现错误");
  306. if (ModMain.MyMsgBox(string.Format("自定义主页内容编写有误,请根据下列错误信息进行检查:{0}{1}", "\r\n", ex.Message), "加载自定义主页失败", "重试", "取消", "", false, true, false, null, null, null) == 1)
  307. {
  308. goto IL_136;
  309. }
  310. }
  311. ModBase.Log("[Page] 实例化:加载自定义主页 UI 完成", ModBase.LogLevel.Normal, "出现错误");
  312. return;
  313. }
  314. IL_136:
  315. this.ForceRefresh();
  316. }
  317. // Token: 0x1700028A RID: 650
  318. // (get) Token: 0x060010C8 RID: 4296 RVA: 0x0000A416 File Offset: 0x00008616
  319. // (set) Token: 0x060010C9 RID: 4297 RVA: 0x0000A41E File Offset: 0x0000861E
  320. internal virtual MyScrollViewer PanBack { get; set; }
  321. // Token: 0x1700028B RID: 651
  322. // (get) Token: 0x060010CA RID: 4298 RVA: 0x0000A427 File Offset: 0x00008627
  323. // (set) Token: 0x060010CB RID: 4299 RVA: 0x0000A42F File Offset: 0x0000862F
  324. internal virtual StackPanel PanMain { get; set; }
  325. // Token: 0x1700028C RID: 652
  326. // (get) Token: 0x060010CC RID: 4300 RVA: 0x0000A438 File Offset: 0x00008638
  327. // (set) Token: 0x060010CD RID: 4301 RVA: 0x0000A440 File Offset: 0x00008640
  328. internal virtual StackPanel PanCustom { get; set; }
  329. // Token: 0x1700028D RID: 653
  330. // (get) Token: 0x060010CE RID: 4302 RVA: 0x0000A449 File Offset: 0x00008649
  331. // (set) Token: 0x060010CF RID: 4303 RVA: 0x0000A451 File Offset: 0x00008651
  332. internal virtual MyCard PanHint { get; set; }
  333. // Token: 0x1700028E RID: 654
  334. // (get) Token: 0x060010D0 RID: 4304 RVA: 0x0000A45A File Offset: 0x0000865A
  335. // (set) Token: 0x060010D1 RID: 4305 RVA: 0x0000A462 File Offset: 0x00008662
  336. internal virtual MyIconButton BtnHintClose { get; set; }
  337. // Token: 0x1700028F RID: 655
  338. // (get) Token: 0x060010D2 RID: 4306 RVA: 0x0000A46B File Offset: 0x0000866B
  339. // (set) Token: 0x060010D3 RID: 4307 RVA: 0x0000A473 File Offset: 0x00008673
  340. internal virtual TextBlock LabHint1 { get; set; }
  341. // Token: 0x17000290 RID: 656
  342. // (get) Token: 0x060010D4 RID: 4308 RVA: 0x0000A47C File Offset: 0x0000867C
  343. // (set) Token: 0x060010D5 RID: 4309 RVA: 0x0000A484 File Offset: 0x00008684
  344. internal virtual TextBlock LabHint2 { get; set; }
  345. // Token: 0x17000291 RID: 657
  346. // (get) Token: 0x060010D6 RID: 4310 RVA: 0x0000A48D File Offset: 0x0000868D
  347. // (set) Token: 0x060010D7 RID: 4311 RVA: 0x0000A495 File Offset: 0x00008695
  348. internal virtual MyCard PanLog { get; set; }
  349. // Token: 0x17000292 RID: 658
  350. // (get) Token: 0x060010D8 RID: 4312 RVA: 0x0000A49E File Offset: 0x0000869E
  351. // (set) Token: 0x060010D9 RID: 4313 RVA: 0x0000A4A6 File Offset: 0x000086A6
  352. internal virtual TextBlock LabLog { get; set; }
  353. // Token: 0x060010DA RID: 4314 RVA: 0x0007B3C0 File Offset: 0x000795C0
  354. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  355. public void InitializeComponent()
  356. {
  357. if (!this._ReaderThread)
  358. {
  359. this._ReaderThread = true;
  360. Uri resourceLocator = new Uri("/Plain Craft Launcher 2;component/pages/pagelaunch/pagelaunchright.xaml", UriKind.Relative);
  361. Application.LoadComponent(this, resourceLocator);
  362. }
  363. }
  364. // Token: 0x060010DB RID: 4315 RVA: 0x0000414E File Offset: 0x0000234E
  365. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  366. internal Delegate _CreateDelegate(Type delegateType, string handler)
  367. {
  368. return Delegate.CreateDelegate(delegateType, this, handler);
  369. }
  370. // Token: 0x060010DC RID: 4316 RVA: 0x0007B3F0 File Offset: 0x000795F0
  371. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  372. [EditorBrowsable(EditorBrowsableState.Never)]
  373. public void System_Windows_Markup_IComponentConnector_Connect(int connectionId, object target)
  374. {
  375. if (connectionId == 1)
  376. {
  377. this.PanBack = (MyScrollViewer)target;
  378. return;
  379. }
  380. if (connectionId == 2)
  381. {
  382. this.PanMain = (StackPanel)target;
  383. return;
  384. }
  385. if (connectionId == 3)
  386. {
  387. this.PanCustom = (StackPanel)target;
  388. return;
  389. }
  390. if (connectionId == 4)
  391. {
  392. this.PanHint = (MyCard)target;
  393. return;
  394. }
  395. if (connectionId == 5)
  396. {
  397. this.BtnHintClose = (MyIconButton)target;
  398. return;
  399. }
  400. if (connectionId == 6)
  401. {
  402. this.LabHint1 = (TextBlock)target;
  403. return;
  404. }
  405. if (connectionId == 7)
  406. {
  407. this.LabHint2 = (TextBlock)target;
  408. return;
  409. }
  410. if (connectionId == 8)
  411. {
  412. this.PanLog = (MyCard)target;
  413. return;
  414. }
  415. if (connectionId == 9)
  416. {
  417. this.LabLog = (TextBlock)target;
  418. return;
  419. }
  420. this._ReaderThread = true;
  421. }
  422. // Token: 0x040008DB RID: 2267
  423. private object classMapper;
  424. // Token: 0x040008DC RID: 2268
  425. private ModLoader.LoaderTask<string, int> _PolicyMapper;
  426. // Token: 0x040008DD RID: 2269
  427. private int m_OrderMapper;
  428. // Token: 0x040008DE RID: 2270
  429. private object _ProducerMapper;
  430. // Token: 0x040008DF RID: 2271
  431. [AccessedThroughProperty("PanBack")]
  432. [CompilerGenerated]
  433. private MyScrollViewer m_SchemaMapper;
  434. // Token: 0x040008E0 RID: 2272
  435. [AccessedThroughProperty("PanMain")]
  436. [CompilerGenerated]
  437. private StackPanel _DescriptorMapper;
  438. // Token: 0x040008E1 RID: 2273
  439. [AccessedThroughProperty("PanCustom")]
  440. [CompilerGenerated]
  441. private StackPanel publisherMapper;
  442. // Token: 0x040008E2 RID: 2274
  443. [AccessedThroughProperty("PanHint")]
  444. [CompilerGenerated]
  445. private MyCard definitionMapper;
  446. // Token: 0x040008E3 RID: 2275
  447. [AccessedThroughProperty("BtnHintClose")]
  448. [CompilerGenerated]
  449. private MyIconButton strategyMapper;
  450. // Token: 0x040008E4 RID: 2276
  451. [CompilerGenerated]
  452. [AccessedThroughProperty("LabHint1")]
  453. private TextBlock m_ProcMapper;
  454. // Token: 0x040008E5 RID: 2277
  455. [CompilerGenerated]
  456. [AccessedThroughProperty("LabHint2")]
  457. private TextBlock m_ParserThread;
  458. // Token: 0x040008E6 RID: 2278
  459. [CompilerGenerated]
  460. [AccessedThroughProperty("PanLog")]
  461. private MyCard _BroadcasterThread;
  462. // Token: 0x040008E7 RID: 2279
  463. [CompilerGenerated]
  464. [AccessedThroughProperty("LabLog")]
  465. private TextBlock m_FieldThread;
  466. // Token: 0x040008E8 RID: 2280
  467. private bool _ReaderThread;
  468. }
  469. }