PageOtherAbout.cs 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.ComponentModel;
  4. using System.Runtime.CompilerServices;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Input;
  8. using System.Windows.Markup;
  9. using Microsoft.VisualBasic.CompilerServices;
  10. namespace PCL
  11. {
  12. // Token: 0x0200019F RID: 415
  13. [DesignerGenerated]
  14. public class PageOtherAbout : MyPageRight, IComponentConnector
  15. {
  16. // Token: 0x060010E5 RID: 4325 RVA: 0x0000A4F7 File Offset: 0x000086F7
  17. public PageOtherAbout()
  18. {
  19. base.Loaded += this.PageOtherAbout_Loaded;
  20. this.clientThread = false;
  21. this.InitializeComponent();
  22. }
  23. // Token: 0x060010E6 RID: 4326 RVA: 0x0007B514 File Offset: 0x00079714
  24. private void PageOtherAbout_Loaded(object sender, RoutedEventArgs e)
  25. {
  26. this.PanBack.ScrollToHome();
  27. if (!this.clientThread)
  28. {
  29. this.clientThread = true;
  30. this.ItemAboutPcl.Info = this.ItemAboutPcl.Info.Replace("%VERSION%", "Release 2.8.12").Replace("%VERSIONCODE%", Conversions.ToString(347)).Replace("%BRANCH%", "50");
  31. }
  32. }
  33. // Token: 0x060010E7 RID: 4327 RVA: 0x0000A51F File Offset: 0x0000871F
  34. private void BtnAboutBmclapi_Click(object sender, EventArgs e)
  35. {
  36. ModBase.OpenWebsite("https://afdian.com/a/bangbang93");
  37. }
  38. // Token: 0x060010E8 RID: 4328 RVA: 0x0000A52B File Offset: 0x0000872B
  39. private void BtnAboutWiki_Click(object sender, EventArgs e)
  40. {
  41. ModBase.OpenWebsite("https://www.mcmod.cn");
  42. }
  43. // Token: 0x060010E9 RID: 4329 RVA: 0x0000A537 File Offset: 0x00008737
  44. public static void CopyUniqueAddress()
  45. {
  46. ModBase.ClipboardSet(ModBase._TagRepository, true);
  47. }
  48. // Token: 0x060010EA RID: 4330 RVA: 0x0000A544 File Offset: 0x00008744
  49. private void BtnDonateCodeInput_Click()
  50. {
  51. ModSecret.DonateCodeInput();
  52. }
  53. // Token: 0x17000293 RID: 659
  54. // (get) Token: 0x060010EB RID: 4331 RVA: 0x0000A54C File Offset: 0x0000874C
  55. // (set) Token: 0x060010EC RID: 4332 RVA: 0x0000A554 File Offset: 0x00008754
  56. internal virtual MyScrollViewer PanBack { get; set; }
  57. // Token: 0x17000294 RID: 660
  58. // (get) Token: 0x060010ED RID: 4333 RVA: 0x0000A55D File Offset: 0x0000875D
  59. // (set) Token: 0x060010EE RID: 4334 RVA: 0x0000A565 File Offset: 0x00008765
  60. internal virtual StackPanel PanMain { get; set; }
  61. // Token: 0x17000295 RID: 661
  62. // (get) Token: 0x060010EF RID: 4335 RVA: 0x0000A56E File Offset: 0x0000876E
  63. // (set) Token: 0x060010F0 RID: 4336 RVA: 0x0000A576 File Offset: 0x00008776
  64. internal virtual MyListItem ItemAboutPcl { get; set; }
  65. // Token: 0x17000296 RID: 662
  66. // (get) Token: 0x060010F1 RID: 4337 RVA: 0x0000A57F File Offset: 0x0000877F
  67. // (set) Token: 0x060010F2 RID: 4338 RVA: 0x0007B584 File Offset: 0x00079784
  68. internal virtual MyButton BtnAboutBmclapi
  69. {
  70. [CompilerGenerated]
  71. get
  72. {
  73. return this._ThreadThread;
  74. }
  75. [CompilerGenerated]
  76. set
  77. {
  78. MyButton.ClickEventHandler value2 = new MyButton.ClickEventHandler(this.BtnAboutBmclapi_Click);
  79. MyButton threadThread = this._ThreadThread;
  80. if (threadThread != null)
  81. {
  82. threadThread.Click -= value2;
  83. }
  84. this._ThreadThread = value;
  85. threadThread = this._ThreadThread;
  86. if (threadThread != null)
  87. {
  88. threadThread.Click += value2;
  89. }
  90. }
  91. }
  92. // Token: 0x17000297 RID: 663
  93. // (get) Token: 0x060010F3 RID: 4339 RVA: 0x0000A587 File Offset: 0x00008787
  94. // (set) Token: 0x060010F4 RID: 4340 RVA: 0x0007B5C8 File Offset: 0x000797C8
  95. internal virtual MyButton BtnAboutWiki
  96. {
  97. [CompilerGenerated]
  98. get
  99. {
  100. return this.propertyThread;
  101. }
  102. [CompilerGenerated]
  103. set
  104. {
  105. MyButton.ClickEventHandler value2 = new MyButton.ClickEventHandler(this.BtnAboutWiki_Click);
  106. MyButton myButton = this.propertyThread;
  107. if (myButton != null)
  108. {
  109. myButton.Click -= value2;
  110. }
  111. this.propertyThread = value;
  112. myButton = this.propertyThread;
  113. if (myButton != null)
  114. {
  115. myButton.Click += value2;
  116. }
  117. }
  118. }
  119. // Token: 0x17000298 RID: 664
  120. // (get) Token: 0x060010F5 RID: 4341 RVA: 0x0000A58F File Offset: 0x0000878F
  121. // (set) Token: 0x060010F6 RID: 4342 RVA: 0x0000A597 File Offset: 0x00008797
  122. internal virtual MyButton BtnDonateOutput { get; set; }
  123. // Token: 0x17000299 RID: 665
  124. // (get) Token: 0x060010F7 RID: 4343 RVA: 0x0000A5A0 File Offset: 0x000087A0
  125. // (set) Token: 0x060010F8 RID: 4344 RVA: 0x0000A5A8 File Offset: 0x000087A8
  126. internal virtual MyButton BtnDonateDonate { get; set; }
  127. // Token: 0x1700029A RID: 666
  128. // (get) Token: 0x060010F9 RID: 4345 RVA: 0x0000A5B1 File Offset: 0x000087B1
  129. // (set) Token: 0x060010FA RID: 4346 RVA: 0x0007B60C File Offset: 0x0007980C
  130. internal virtual MyButton BtnDonateCopy
  131. {
  132. [CompilerGenerated]
  133. get
  134. {
  135. return this.repositoryThread;
  136. }
  137. [CompilerGenerated]
  138. set
  139. {
  140. MyButton.ClickEventHandler value2 = (PageOtherAbout._Closure$__.$IR37-1 == null) ? (PageOtherAbout._Closure$__.$IR37-1 = delegate(object sender, MouseButtonEventArgs e)
  141. {
  142. PageOtherAbout.CopyUniqueAddress();
  143. }) : PageOtherAbout._Closure$__.$IR37-1;
  144. MyButton myButton = this.repositoryThread;
  145. if (myButton != null)
  146. {
  147. myButton.Click -= value2;
  148. }
  149. this.repositoryThread = value;
  150. myButton = this.repositoryThread;
  151. if (myButton != null)
  152. {
  153. myButton.Click += value2;
  154. }
  155. }
  156. }
  157. // Token: 0x1700029B RID: 667
  158. // (get) Token: 0x060010FB RID: 4347 RVA: 0x0000A5B9 File Offset: 0x000087B9
  159. // (set) Token: 0x060010FC RID: 4348 RVA: 0x0007B668 File Offset: 0x00079868
  160. internal virtual MyButton BtnDonateInput
  161. {
  162. [CompilerGenerated]
  163. get
  164. {
  165. return this.m_TestThread;
  166. }
  167. [CompilerGenerated]
  168. set
  169. {
  170. MyButton.ClickEventHandler value2 = delegate(object sender, MouseButtonEventArgs e)
  171. {
  172. this.BtnDonateCodeInput_Click();
  173. };
  174. MyButton testThread = this.m_TestThread;
  175. if (testThread != null)
  176. {
  177. testThread.Click -= value2;
  178. }
  179. this.m_TestThread = value;
  180. testThread = this.m_TestThread;
  181. if (testThread != null)
  182. {
  183. testThread.Click += value2;
  184. }
  185. }
  186. }
  187. // Token: 0x060010FD RID: 4349 RVA: 0x0007B6AC File Offset: 0x000798AC
  188. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  189. public void InitializeComponent()
  190. {
  191. if (!this._MapThread)
  192. {
  193. this._MapThread = true;
  194. Uri resourceLocator = new Uri("/Plain Craft Launcher 2;component/pages/pageother/pageotherabout.xaml", UriKind.Relative);
  195. Application.LoadComponent(this, resourceLocator);
  196. }
  197. }
  198. // Token: 0x060010FE RID: 4350 RVA: 0x0000414E File Offset: 0x0000234E
  199. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  200. internal Delegate _CreateDelegate(Type delegateType, string handler)
  201. {
  202. return Delegate.CreateDelegate(delegateType, this, handler);
  203. }
  204. // Token: 0x060010FF RID: 4351 RVA: 0x0007B6DC File Offset: 0x000798DC
  205. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  206. [EditorBrowsable(EditorBrowsableState.Never)]
  207. public void System_Windows_Markup_IComponentConnector_Connect(int connectionId, object target)
  208. {
  209. if (connectionId == 1)
  210. {
  211. this.PanBack = (MyScrollViewer)target;
  212. return;
  213. }
  214. if (connectionId == 2)
  215. {
  216. this.PanMain = (StackPanel)target;
  217. return;
  218. }
  219. if (connectionId == 3)
  220. {
  221. this.ItemAboutPcl = (MyListItem)target;
  222. return;
  223. }
  224. if (connectionId == 4)
  225. {
  226. this.BtnAboutBmclapi = (MyButton)target;
  227. return;
  228. }
  229. if (connectionId == 5)
  230. {
  231. this.BtnAboutWiki = (MyButton)target;
  232. return;
  233. }
  234. if (connectionId == 6)
  235. {
  236. this.BtnDonateOutput = (MyButton)target;
  237. return;
  238. }
  239. if (connectionId == 7)
  240. {
  241. this.BtnDonateDonate = (MyButton)target;
  242. return;
  243. }
  244. if (connectionId == 8)
  245. {
  246. this.BtnDonateCopy = (MyButton)target;
  247. return;
  248. }
  249. if (connectionId == 9)
  250. {
  251. this.BtnDonateInput = (MyButton)target;
  252. return;
  253. }
  254. this._MapThread = true;
  255. }
  256. // Token: 0x040008EB RID: 2283
  257. private bool clientThread;
  258. // Token: 0x040008EC RID: 2284
  259. [CompilerGenerated]
  260. [AccessedThroughProperty("PanBack")]
  261. private MyScrollViewer m_ConfigThread;
  262. // Token: 0x040008ED RID: 2285
  263. [CompilerGenerated]
  264. [AccessedThroughProperty("PanMain")]
  265. private StackPanel m_TestsThread;
  266. // Token: 0x040008EE RID: 2286
  267. [CompilerGenerated]
  268. [AccessedThroughProperty("ItemAboutPcl")]
  269. private MyListItem m_MapperThread;
  270. // Token: 0x040008EF RID: 2287
  271. [CompilerGenerated]
  272. [AccessedThroughProperty("BtnAboutBmclapi")]
  273. private MyButton _ThreadThread;
  274. // Token: 0x040008F0 RID: 2288
  275. [CompilerGenerated]
  276. [AccessedThroughProperty("BtnAboutWiki")]
  277. private MyButton propertyThread;
  278. // Token: 0x040008F1 RID: 2289
  279. [CompilerGenerated]
  280. [AccessedThroughProperty("BtnDonateOutput")]
  281. private MyButton m_ComposerThread;
  282. // Token: 0x040008F2 RID: 2290
  283. [AccessedThroughProperty("BtnDonateDonate")]
  284. [CompilerGenerated]
  285. private MyButton _IteratorThread;
  286. // Token: 0x040008F3 RID: 2291
  287. [CompilerGenerated]
  288. [AccessedThroughProperty("BtnDonateCopy")]
  289. private MyButton repositoryThread;
  290. // Token: 0x040008F4 RID: 2292
  291. [AccessedThroughProperty("BtnDonateInput")]
  292. [CompilerGenerated]
  293. private MyButton m_TestThread;
  294. // Token: 0x040008F5 RID: 2293
  295. private bool _MapThread;
  296. }
  297. }