MyRadioButton.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Runtime.CompilerServices;
  7. using System.Threading;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Input;
  11. using System.Windows.Markup;
  12. using System.Windows.Media;
  13. using System.Windows.Shapes;
  14. using Microsoft.VisualBasic;
  15. using Microsoft.VisualBasic.CompilerServices;
  16. namespace PCL
  17. {
  18. // Token: 0x020001E0 RID: 480
  19. [DesignerGenerated]
  20. public class MyRadioButton : Border, IComponentConnector
  21. {
  22. // Token: 0x06001657 RID: 5719 RVA: 0x000929FC File Offset: 0x00090BFC
  23. public MyRadioButton()
  24. {
  25. base.MouseLeftButtonUp += delegate(object sender, MouseButtonEventArgs e)
  26. {
  27. this.Radiobox_MouseUp();
  28. };
  29. base.MouseLeftButtonDown += delegate(object sender, MouseButtonEventArgs e)
  30. {
  31. this.Radiobox_MouseDown();
  32. };
  33. base.MouseLeave += delegate(object sender, MouseEventArgs e)
  34. {
  35. this.Radiobox_MouseLeave();
  36. };
  37. base.MouseEnter += new MouseEventHandler(this.RefreshColor);
  38. base.MouseLeave += new MouseEventHandler(this.RefreshColor);
  39. base.Loaded += new RoutedEventHandler(this.RefreshColor);
  40. this.issuerIterator = ModBase.GetUuid();
  41. this.serializerIterator = 1.0;
  42. this.watcherIterator = false;
  43. this.m_SystemIterator = MyRadioButton.ColorState.White;
  44. this.m_TagIterator = false;
  45. this.InitializeComponent();
  46. }
  47. // Token: 0x06001658 RID: 5720 RVA: 0x00092AB4 File Offset: 0x00090CB4
  48. [CompilerGenerated]
  49. public void LogoutTests(MyRadioButton.CheckEventHandler obj)
  50. {
  51. MyRadioButton.CheckEventHandler checkEventHandler = this._IndexerIterator;
  52. MyRadioButton.CheckEventHandler checkEventHandler2;
  53. do
  54. {
  55. checkEventHandler2 = checkEventHandler;
  56. MyRadioButton.CheckEventHandler value = (MyRadioButton.CheckEventHandler)Delegate.Combine(checkEventHandler2, obj);
  57. checkEventHandler = Interlocked.CompareExchange<MyRadioButton.CheckEventHandler>(ref this._IndexerIterator, value, checkEventHandler2);
  58. }
  59. while (checkEventHandler != checkEventHandler2);
  60. }
  61. // Token: 0x06001659 RID: 5721 RVA: 0x00092AEC File Offset: 0x00090CEC
  62. [CompilerGenerated]
  63. public void ResolveTests(MyRadioButton.CheckEventHandler obj)
  64. {
  65. MyRadioButton.CheckEventHandler checkEventHandler = this._IndexerIterator;
  66. MyRadioButton.CheckEventHandler checkEventHandler2;
  67. do
  68. {
  69. checkEventHandler2 = checkEventHandler;
  70. MyRadioButton.CheckEventHandler value = (MyRadioButton.CheckEventHandler)Delegate.Remove(checkEventHandler2, obj);
  71. checkEventHandler = Interlocked.CompareExchange<MyRadioButton.CheckEventHandler>(ref this._IndexerIterator, value, checkEventHandler2);
  72. }
  73. while (checkEventHandler != checkEventHandler2);
  74. }
  75. // Token: 0x0600165A RID: 5722 RVA: 0x00092B24 File Offset: 0x00090D24
  76. [CompilerGenerated]
  77. public void ForgotTests(MyRadioButton.ChangeEventHandler obj)
  78. {
  79. MyRadioButton.ChangeEventHandler changeEventHandler = this._InterpreterIterator;
  80. MyRadioButton.ChangeEventHandler changeEventHandler2;
  81. do
  82. {
  83. changeEventHandler2 = changeEventHandler;
  84. MyRadioButton.ChangeEventHandler value = (MyRadioButton.ChangeEventHandler)Delegate.Combine(changeEventHandler2, obj);
  85. changeEventHandler = Interlocked.CompareExchange<MyRadioButton.ChangeEventHandler>(ref this._InterpreterIterator, value, changeEventHandler2);
  86. }
  87. while (changeEventHandler != changeEventHandler2);
  88. }
  89. // Token: 0x0600165B RID: 5723 RVA: 0x00092B5C File Offset: 0x00090D5C
  90. [CompilerGenerated]
  91. public void ViewTests(MyRadioButton.ChangeEventHandler obj)
  92. {
  93. MyRadioButton.ChangeEventHandler changeEventHandler = this._InterpreterIterator;
  94. MyRadioButton.ChangeEventHandler changeEventHandler2;
  95. do
  96. {
  97. changeEventHandler2 = changeEventHandler;
  98. MyRadioButton.ChangeEventHandler value = (MyRadioButton.ChangeEventHandler)Delegate.Remove(changeEventHandler2, obj);
  99. changeEventHandler = Interlocked.CompareExchange<MyRadioButton.ChangeEventHandler>(ref this._InterpreterIterator, value, changeEventHandler2);
  100. }
  101. while (changeEventHandler != changeEventHandler2);
  102. }
  103. // Token: 0x0600165C RID: 5724 RVA: 0x00092B94 File Offset: 0x00090D94
  104. public void RaiseChange()
  105. {
  106. MyRadioButton.ChangeEventHandler interpreterIterator = this._InterpreterIterator;
  107. if (interpreterIterator != null)
  108. {
  109. interpreterIterator(this, false);
  110. }
  111. }
  112. // Token: 0x170003D0 RID: 976
  113. // (get) Token: 0x0600165D RID: 5725 RVA: 0x0000C89A File Offset: 0x0000AA9A
  114. // (set) Token: 0x0600165E RID: 5726 RVA: 0x0000C8AC File Offset: 0x0000AAAC
  115. public string Logo
  116. {
  117. get
  118. {
  119. return this.ShapeLogo.Data.ToString();
  120. }
  121. set
  122. {
  123. this.ShapeLogo.Data = (Geometry)new GeometryConverter().ConvertFromString(value);
  124. }
  125. }
  126. // Token: 0x170003D1 RID: 977
  127. // (get) Token: 0x0600165F RID: 5727 RVA: 0x0000C8C9 File Offset: 0x0000AAC9
  128. // (set) Token: 0x06001660 RID: 5728 RVA: 0x0000C8D1 File Offset: 0x0000AAD1
  129. public double LogoScale
  130. {
  131. get
  132. {
  133. return this.serializerIterator;
  134. }
  135. set
  136. {
  137. this.serializerIterator = value;
  138. if (!Information.IsNothing(this.ShapeLogo))
  139. {
  140. this.ShapeLogo.RenderTransform = new ScaleTransform
  141. {
  142. ScaleX = this.LogoScale,
  143. ScaleY = this.LogoScale
  144. };
  145. }
  146. }
  147. }
  148. // Token: 0x170003D2 RID: 978
  149. // (get) Token: 0x06001661 RID: 5729 RVA: 0x0000C90F File Offset: 0x0000AB0F
  150. // (set) Token: 0x06001662 RID: 5730 RVA: 0x0000C917 File Offset: 0x0000AB17
  151. public bool Checked
  152. {
  153. get
  154. {
  155. return this.watcherIterator;
  156. }
  157. set
  158. {
  159. this.SetChecked(value, false, true);
  160. }
  161. }
  162. // Token: 0x06001663 RID: 5731 RVA: 0x00092BB4 File Offset: 0x00090DB4
  163. public void SetChecked(bool value, bool user, bool anime)
  164. {
  165. checked
  166. {
  167. try
  168. {
  169. bool flag = false;
  170. if (base.IsLoaded && value != this.watcherIterator)
  171. {
  172. MyRadioButton.ChangeEventHandler interpreterIterator = this._InterpreterIterator;
  173. if (interpreterIterator != null)
  174. {
  175. interpreterIterator(this, user);
  176. }
  177. }
  178. if (value != this.watcherIterator)
  179. {
  180. this.watcherIterator = value;
  181. flag = true;
  182. }
  183. if (!Information.IsNothing(base.Parent))
  184. {
  185. List<MyRadioButton> list = new List<MyRadioButton>();
  186. int num = 0;
  187. try
  188. {
  189. foreach (object obj in ((IEnumerable)NewLateBinding.LateGet(base.Parent, null, "Children", new object[0], null, null, null)))
  190. {
  191. object objectValue = RuntimeHelpers.GetObjectValue(obj);
  192. if (objectValue is MyRadioButton)
  193. {
  194. list.Add((MyRadioButton)objectValue);
  195. if (Conversions.ToBoolean(NewLateBinding.LateGet(objectValue, null, "Checked", new object[0], null, null, null)))
  196. {
  197. num++;
  198. }
  199. }
  200. }
  201. }
  202. finally
  203. {
  204. IEnumerator enumerator;
  205. if (enumerator is IDisposable)
  206. {
  207. (enumerator as IDisposable).Dispose();
  208. }
  209. }
  210. int num2 = num;
  211. if (num2 == 0)
  212. {
  213. list[0].Checked = true;
  214. }
  215. else if (num2 > 1)
  216. {
  217. if (this.Checked)
  218. {
  219. try
  220. {
  221. foreach (MyRadioButton myRadioButton in list)
  222. {
  223. if (myRadioButton.Checked && !myRadioButton.Equals(this))
  224. {
  225. myRadioButton.Checked = false;
  226. }
  227. }
  228. goto IL_198;
  229. }
  230. finally
  231. {
  232. List<MyRadioButton>.Enumerator enumerator2;
  233. ((IDisposable)enumerator2).Dispose();
  234. }
  235. }
  236. bool flag2 = false;
  237. try
  238. {
  239. foreach (MyRadioButton myRadioButton2 in list)
  240. {
  241. if (myRadioButton2.Checked)
  242. {
  243. if (flag2)
  244. {
  245. myRadioButton2.Checked = false;
  246. }
  247. else
  248. {
  249. flag2 = true;
  250. }
  251. }
  252. }
  253. }
  254. finally
  255. {
  256. List<MyRadioButton>.Enumerator enumerator3;
  257. ((IDisposable)enumerator3).Dispose();
  258. }
  259. }
  260. IL_198:
  261. if (flag)
  262. {
  263. this.RefreshColor(null, anime);
  264. if (this.Checked)
  265. {
  266. MyRadioButton.CheckEventHandler indexerIterator = this._IndexerIterator;
  267. if (indexerIterator != null)
  268. {
  269. indexerIterator(this, user);
  270. }
  271. }
  272. }
  273. }
  274. }
  275. catch (Exception ex)
  276. {
  277. ModBase.Log(ex, "单选按钮勾选改变错误", ModBase.LogLevel.Hint, "出现错误");
  278. }
  279. }
  280. }
  281. // Token: 0x170003D3 RID: 979
  282. // (get) Token: 0x06001664 RID: 5732 RVA: 0x0000C922 File Offset: 0x0000AB22
  283. // (set) Token: 0x06001665 RID: 5733 RVA: 0x0000C934 File Offset: 0x0000AB34
  284. public string Text
  285. {
  286. get
  287. {
  288. return Conversions.ToString(base.GetValue(MyRadioButton._IdentifierIterator));
  289. }
  290. set
  291. {
  292. base.SetValue(MyRadioButton._IdentifierIterator, value);
  293. }
  294. }
  295. // Token: 0x170003D4 RID: 980
  296. // (get) Token: 0x06001666 RID: 5734 RVA: 0x0000C942 File Offset: 0x0000AB42
  297. // (set) Token: 0x06001667 RID: 5735 RVA: 0x0000C94A File Offset: 0x0000AB4A
  298. public MyRadioButton.ColorState ColorType
  299. {
  300. get
  301. {
  302. return this.m_SystemIterator;
  303. }
  304. set
  305. {
  306. this.m_SystemIterator = value;
  307. this.RefreshColor(null, null);
  308. }
  309. }
  310. // Token: 0x06001668 RID: 5736 RVA: 0x00092E10 File Offset: 0x00091010
  311. [CompilerGenerated]
  312. public void ResetTests(MyRadioButton.PreviewClickEventHandler obj)
  313. {
  314. MyRadioButton.PreviewClickEventHandler previewClickEventHandler = this.m_ParamIterator;
  315. MyRadioButton.PreviewClickEventHandler previewClickEventHandler2;
  316. do
  317. {
  318. previewClickEventHandler2 = previewClickEventHandler;
  319. MyRadioButton.PreviewClickEventHandler value = (MyRadioButton.PreviewClickEventHandler)Delegate.Combine(previewClickEventHandler2, obj);
  320. previewClickEventHandler = Interlocked.CompareExchange<MyRadioButton.PreviewClickEventHandler>(ref this.m_ParamIterator, value, previewClickEventHandler2);
  321. }
  322. while (previewClickEventHandler != previewClickEventHandler2);
  323. }
  324. // Token: 0x06001669 RID: 5737 RVA: 0x00092E48 File Offset: 0x00091048
  325. [CompilerGenerated]
  326. public void InsertTests(MyRadioButton.PreviewClickEventHandler obj)
  327. {
  328. MyRadioButton.PreviewClickEventHandler previewClickEventHandler = this.m_ParamIterator;
  329. MyRadioButton.PreviewClickEventHandler previewClickEventHandler2;
  330. do
  331. {
  332. previewClickEventHandler2 = previewClickEventHandler;
  333. MyRadioButton.PreviewClickEventHandler value = (MyRadioButton.PreviewClickEventHandler)Delegate.Remove(previewClickEventHandler2, obj);
  334. previewClickEventHandler = Interlocked.CompareExchange<MyRadioButton.PreviewClickEventHandler>(ref this.m_ParamIterator, value, previewClickEventHandler2);
  335. }
  336. while (previewClickEventHandler != previewClickEventHandler2);
  337. }
  338. // Token: 0x0600166A RID: 5738 RVA: 0x00092E80 File Offset: 0x00091080
  339. private void Radiobox_MouseUp()
  340. {
  341. if (!this.Checked && this.m_TagIterator)
  342. {
  343. ModBase.Log("[Control] 按下单选按钮:" + this.Text, ModBase.LogLevel.Normal, "出现错误");
  344. this.m_TagIterator = false;
  345. ModBase.RouteEventArgs routeEventArgs = new ModBase.RouteEventArgs(true);
  346. MyRadioButton.PreviewClickEventHandler paramIterator = this.m_ParamIterator;
  347. if (paramIterator != null)
  348. {
  349. paramIterator(this, routeEventArgs);
  350. }
  351. if (!routeEventArgs.m_SerializerError)
  352. {
  353. this.SetChecked(true, true, true);
  354. }
  355. }
  356. }
  357. // Token: 0x0600166B RID: 5739 RVA: 0x0000C95B File Offset: 0x0000AB5B
  358. private void Radiobox_MouseDown()
  359. {
  360. if (!this.Checked)
  361. {
  362. this.m_TagIterator = true;
  363. this.RefreshColor(null, null);
  364. }
  365. }
  366. // Token: 0x0600166C RID: 5740 RVA: 0x0000C974 File Offset: 0x0000AB74
  367. private void Radiobox_MouseLeave()
  368. {
  369. this.m_TagIterator = false;
  370. }
  371. // Token: 0x0600166D RID: 5741 RVA: 0x00092EEC File Offset: 0x000910EC
  372. private void RefreshColor(object obj = null, object e = null)
  373. {
  374. try
  375. {
  376. if (base.IsLoaded && ModAnimation.CalcParser() == 0 && !false.Equals(RuntimeHelpers.GetObjectValue(e)))
  377. {
  378. MyRadioButton.ColorState colorType = this.ColorType;
  379. if (colorType != MyRadioButton.ColorState.White)
  380. {
  381. if (colorType == MyRadioButton.ColorState.Highlight)
  382. {
  383. if (this.Checked)
  384. {
  385. ModAnimation.AniStart(new ModAnimation.AniData[]
  386. {
  387. ModAnimation.AaColor(this.ShapeLogo, Shape.FillProperty, new ModBase.MyColor(255.0, 255.0, 255.0) - this.ShapeLogo.Fill, 120, 0, null, false),
  388. ModAnimation.AaColor(this.LabText, TextBlock.ForegroundProperty, new ModBase.MyColor(255.0, 255.0, 255.0) - this.LabText.Foreground, 120, 0, null, false)
  389. }, "MyRadioButton Checked " + Conversions.ToString(this.issuerIterator), false);
  390. ModAnimation.AniStart(ModAnimation.AaColor(this, Border.BackgroundProperty, "ColorBrush3", 120, 0, null, false), "MyRadioButton Color " + Conversions.ToString(this.issuerIterator), false);
  391. }
  392. else if (this.m_TagIterator)
  393. {
  394. ModAnimation.AniStart(ModAnimation.AaColor(this, Border.BackgroundProperty, "ColorBrush6", 90, 0, null, false), "MyRadioButton Color " + Conversions.ToString(this.issuerIterator), false);
  395. }
  396. else if (base.IsMouseOver)
  397. {
  398. ModAnimation.AniStart(new ModAnimation.AniData[]
  399. {
  400. ModAnimation.AaColor(this.ShapeLogo, Shape.FillProperty, "ColorBrush3", 90, 0, null, false),
  401. ModAnimation.AaColor(this.LabText, TextBlock.ForegroundProperty, "ColorBrush3", 90, 0, null, false)
  402. }, "MyRadioButton Checked " + Conversions.ToString(this.issuerIterator), false);
  403. ModAnimation.AniStart(ModAnimation.AaColor(this, Border.BackgroundProperty, "ColorBrush7", 90, 0, null, false), "MyRadioButton Color " + Conversions.ToString(this.issuerIterator), false);
  404. }
  405. else
  406. {
  407. ModAnimation.AniStart(new ModAnimation.AniData[]
  408. {
  409. ModAnimation.AaColor(this.ShapeLogo, Shape.FillProperty, "ColorBrush3", 150, 0, null, false),
  410. ModAnimation.AaColor(this.LabText, TextBlock.ForegroundProperty, "ColorBrush3", 150, 0, null, false)
  411. }, "MyRadioButton Checked " + Conversions.ToString(this.issuerIterator), false);
  412. ModAnimation.AniStart(ModAnimation.AaColor(this, Border.BackgroundProperty, ModSecret._ConsumerField - base.Background, 150, 0, null, false), "MyRadioButton Color " + Conversions.ToString(this.issuerIterator), false);
  413. }
  414. }
  415. }
  416. else if (this.Checked)
  417. {
  418. ModAnimation.AniStart(new ModAnimation.AniData[]
  419. {
  420. ModAnimation.AaColor(this.ShapeLogo, Shape.FillProperty, "ColorBrush3", 120, 0, null, false),
  421. ModAnimation.AaColor(this.LabText, TextBlock.ForegroundProperty, "ColorBrush3", 120, 0, null, false)
  422. }, "MyRadioButton Checked " + Conversions.ToString(this.issuerIterator), false);
  423. ModAnimation.AniStart(ModAnimation.AaColor(this, Border.BackgroundProperty, new ModBase.MyColor(255.0, 255.0, 255.0) - base.Background, 120, 0, null, false), "MyRadioButton Color " + Conversions.ToString(this.issuerIterator), false);
  424. }
  425. else if (this.m_TagIterator)
  426. {
  427. ModAnimation.AniStart(ModAnimation.AaColor(this, Border.BackgroundProperty, new ModBase.MyColor(120.0, ModSecret.m_ObserverField) - base.Background, 60, 0, null, false), "MyRadioButton Color " + Conversions.ToString(this.issuerIterator), false);
  428. }
  429. else if (base.IsMouseOver)
  430. {
  431. ModAnimation.AniStart(new ModAnimation.AniData[]
  432. {
  433. ModAnimation.AaColor(this.ShapeLogo, Shape.FillProperty, new ModBase.MyColor(255.0, 255.0, 255.0) - this.ShapeLogo.Fill, 90, 0, null, false),
  434. ModAnimation.AaColor(this.LabText, TextBlock.ForegroundProperty, new ModBase.MyColor(255.0, 255.0, 255.0) - this.LabText.Foreground, 90, 0, null, false)
  435. }, "MyRadioButton Checked " + Conversions.ToString(this.issuerIterator), false);
  436. ModAnimation.AniStart(ModAnimation.AaColor(this, Border.BackgroundProperty, new ModBase.MyColor(50.0, ModSecret.m_ObserverField) - base.Background, 90, 0, null, false), "MyRadioButton Color " + Conversions.ToString(this.issuerIterator), false);
  437. }
  438. else
  439. {
  440. ModAnimation.AniStart(new ModAnimation.AniData[]
  441. {
  442. ModAnimation.AaColor(this.ShapeLogo, Shape.FillProperty, new ModBase.MyColor(255.0, 255.0, 255.0) - this.ShapeLogo.Fill, 150, 0, null, false),
  443. ModAnimation.AaColor(this.LabText, TextBlock.ForegroundProperty, new ModBase.MyColor(255.0, 255.0, 255.0) - this.LabText.Foreground, 150, 0, null, false)
  444. }, "MyRadioButton Checked " + Conversions.ToString(this.issuerIterator), false);
  445. ModAnimation.AniStart(ModAnimation.AaColor(this, Border.BackgroundProperty, ModSecret._ConsumerField - base.Background, 150, 0, null, false), "MyRadioButton Color " + Conversions.ToString(this.issuerIterator), false);
  446. }
  447. }
  448. else
  449. {
  450. ModAnimation.AniStop("MyRadioButton Checked " + Conversions.ToString(this.issuerIterator));
  451. ModAnimation.AniStop("MyRadioButton Color " + Conversions.ToString(this.issuerIterator));
  452. MyRadioButton.ColorState colorType2 = this.ColorType;
  453. if (colorType2 != MyRadioButton.ColorState.White)
  454. {
  455. if (colorType2 == MyRadioButton.ColorState.Highlight)
  456. {
  457. if (this.Checked)
  458. {
  459. base.SetResourceReference(Border.BackgroundProperty, "ColorBrush3");
  460. this.ShapeLogo.Fill = new ModBase.MyColor(255.0, 255.0, 255.0);
  461. this.LabText.Foreground = new ModBase.MyColor(255.0, 255.0, 255.0);
  462. }
  463. else
  464. {
  465. base.Background = ModSecret._ConsumerField;
  466. this.ShapeLogo.SetResourceReference(Shape.FillProperty, "ColorBrush3");
  467. this.LabText.SetResourceReference(TextBlock.ForegroundProperty, "ColorBrush3");
  468. }
  469. }
  470. }
  471. else if (this.Checked)
  472. {
  473. base.Background = new ModBase.MyColor(255.0, 255.0, 255.0);
  474. this.ShapeLogo.SetResourceReference(Shape.FillProperty, "ColorBrush3");
  475. this.LabText.SetResourceReference(TextBlock.ForegroundProperty, "ColorBrush3");
  476. }
  477. else
  478. {
  479. base.Background = ModSecret._ConsumerField;
  480. this.ShapeLogo.Fill = new ModBase.MyColor(255.0, 255.0, 255.0);
  481. this.LabText.Foreground = new ModBase.MyColor(255.0, 255.0, 255.0);
  482. }
  483. }
  484. }
  485. catch (Exception ex)
  486. {
  487. ModBase.Log(ex, "刷新单选按钮颜色出错", ModBase.LogLevel.Debug, "出现错误");
  488. }
  489. }
  490. // Token: 0x170003D5 RID: 981
  491. // (get) Token: 0x0600166E RID: 5742 RVA: 0x0000C97D File Offset: 0x0000AB7D
  492. // (set) Token: 0x0600166F RID: 5743 RVA: 0x0000C985 File Offset: 0x0000AB85
  493. internal virtual MyRadioButton PanBack { get; set; }
  494. // Token: 0x170003D6 RID: 982
  495. // (get) Token: 0x06001670 RID: 5744 RVA: 0x0000C98E File Offset: 0x0000AB8E
  496. // (set) Token: 0x06001671 RID: 5745 RVA: 0x0000C996 File Offset: 0x0000AB96
  497. internal virtual Path ShapeLogo { get; set; }
  498. // Token: 0x170003D7 RID: 983
  499. // (get) Token: 0x06001672 RID: 5746 RVA: 0x0000C99F File Offset: 0x0000AB9F
  500. // (set) Token: 0x06001673 RID: 5747 RVA: 0x0000C9A7 File Offset: 0x0000ABA7
  501. internal virtual TextBlock LabText { get; set; }
  502. // Token: 0x06001674 RID: 5748 RVA: 0x0009373C File Offset: 0x0009193C
  503. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  504. public void InitializeComponent()
  505. {
  506. if (!this._RefIterator)
  507. {
  508. this._RefIterator = true;
  509. Uri resourceLocator = new Uri("/Plain Craft Launcher 2;component/controls/myradiobutton.xaml", UriKind.Relative);
  510. Application.LoadComponent(this, resourceLocator);
  511. }
  512. }
  513. // Token: 0x06001675 RID: 5749 RVA: 0x0000C9B0 File Offset: 0x0000ABB0
  514. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  515. [EditorBrowsable(EditorBrowsableState.Never)]
  516. public void System_Windows_Markup_IComponentConnector_Connect(int connectionId, object target)
  517. {
  518. if (connectionId == 1)
  519. {
  520. this.PanBack = (MyRadioButton)target;
  521. return;
  522. }
  523. if (connectionId == 2)
  524. {
  525. this.ShapeLogo = (Path)target;
  526. return;
  527. }
  528. if (connectionId == 3)
  529. {
  530. this.LabText = (TextBlock)target;
  531. return;
  532. }
  533. this._RefIterator = true;
  534. }
  535. // Token: 0x04000B55 RID: 2901
  536. public int issuerIterator;
  537. // Token: 0x04000B56 RID: 2902
  538. [CompilerGenerated]
  539. private MyRadioButton.CheckEventHandler _IndexerIterator;
  540. // Token: 0x04000B57 RID: 2903
  541. [CompilerGenerated]
  542. private MyRadioButton.ChangeEventHandler _InterpreterIterator;
  543. // Token: 0x04000B58 RID: 2904
  544. private double serializerIterator;
  545. // Token: 0x04000B59 RID: 2905
  546. private bool watcherIterator;
  547. // Token: 0x04000B5A RID: 2906
  548. public static readonly DependencyProperty _IdentifierIterator = DependencyProperty.Register("Text", typeof(string), typeof(MyRadioButton), new PropertyMetadata(delegate(DependencyObject sender, DependencyPropertyChangedEventArgs e)
  549. {
  550. if (sender != null)
  551. {
  552. ((MyRadioButton)sender).LabText.Text = Conversions.ToString(e.NewValue);
  553. }
  554. }));
  555. // Token: 0x04000B5B RID: 2907
  556. private MyRadioButton.ColorState m_SystemIterator;
  557. // Token: 0x04000B5C RID: 2908
  558. [CompilerGenerated]
  559. private MyRadioButton.PreviewClickEventHandler m_ParamIterator;
  560. // Token: 0x04000B5D RID: 2909
  561. private bool m_TagIterator;
  562. // Token: 0x04000B5E RID: 2910
  563. [AccessedThroughProperty("PanBack")]
  564. [CompilerGenerated]
  565. private MyRadioButton _ObserverIterator;
  566. // Token: 0x04000B5F RID: 2911
  567. [AccessedThroughProperty("ShapeLogo")]
  568. [CompilerGenerated]
  569. private Path stubIterator;
  570. // Token: 0x04000B60 RID: 2912
  571. [CompilerGenerated]
  572. [AccessedThroughProperty("LabText")]
  573. private TextBlock _RulesIterator;
  574. // Token: 0x04000B61 RID: 2913
  575. private bool _RefIterator;
  576. // Token: 0x020001E1 RID: 481
  577. // (Invoke) Token: 0x0600167C RID: 5756
  578. public delegate void CheckEventHandler(object sender, bool raiseByMouse);
  579. // Token: 0x020001E2 RID: 482
  580. // (Invoke) Token: 0x06001681 RID: 5761
  581. public delegate void ChangeEventHandler(object sender, bool raiseByMouse);
  582. // Token: 0x020001E3 RID: 483
  583. public enum ColorState
  584. {
  585. // Token: 0x04000B63 RID: 2915
  586. White,
  587. // Token: 0x04000B64 RID: 2916
  588. Highlight
  589. }
  590. // Token: 0x020001E4 RID: 484
  591. // (Invoke) Token: 0x06001686 RID: 5766
  592. public delegate void PreviewClickEventHandler(object sender, ModBase.RouteEventArgs e);
  593. }
  594. }