MyCompItem.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Linq;
  7. using System.Runtime.CompilerServices;
  8. using System.Threading;
  9. using System.Windows;
  10. using System.Windows.Controls;
  11. using System.Windows.Input;
  12. using System.Windows.Markup;
  13. using System.Windows.Media;
  14. using System.Windows.Shapes;
  15. using Microsoft.VisualBasic.CompilerServices;
  16. namespace PCL
  17. {
  18. // Token: 0x020000DE RID: 222
  19. [DesignerGenerated]
  20. public class MyCompItem : Grid, IComponentConnector
  21. {
  22. // Token: 0x06000692 RID: 1682 RVA: 0x0003D938 File Offset: 0x0003BB38
  23. public MyCompItem()
  24. {
  25. base.PreviewMouseLeftButtonUp += this.Button_MouseUp;
  26. this.Click += delegate(object sender, MouseButtonEventArgs e)
  27. {
  28. this.ProjectClick((MyCompItem)sender, e);
  29. };
  30. base.PreviewMouseLeftButtonDown += this.Button_MouseDown;
  31. base.MouseLeave += new MouseEventHandler(this.Button_MouseLeave);
  32. base.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.Button_MouseLeave);
  33. base.MouseEnter += new MouseEventHandler(this.RefreshColor);
  34. base.MouseLeave += new MouseEventHandler(this.RefreshColor);
  35. base.MouseLeftButtonDown += new MouseButtonEventHandler(this.RefreshColor);
  36. base.MouseLeftButtonUp += new MouseButtonEventHandler(this.RefreshColor);
  37. this.m_AttrField = ModBase.GetUuid();
  38. this._AdvisorField = false;
  39. this._AccountField = null;
  40. this._EventField = true;
  41. this.InitializeComponent();
  42. }
  43. // Token: 0x17000091 RID: 145
  44. // (get) Token: 0x06000693 RID: 1683 RVA: 0x00005614 File Offset: 0x00003814
  45. // (set) Token: 0x06000694 RID: 1684 RVA: 0x00005621 File Offset: 0x00003821
  46. public string Logo
  47. {
  48. get
  49. {
  50. return this.PathLogo.Source;
  51. }
  52. set
  53. {
  54. this.PathLogo.Source = value;
  55. }
  56. }
  57. // Token: 0x17000092 RID: 146
  58. // (get) Token: 0x06000695 RID: 1685 RVA: 0x0000562F File Offset: 0x0000382F
  59. // (set) Token: 0x06000696 RID: 1686 RVA: 0x0000563C File Offset: 0x0000383C
  60. public string Title
  61. {
  62. get
  63. {
  64. return this.LabTitle.Text;
  65. }
  66. set
  67. {
  68. if (Operators.CompareString(this.LabTitle.Text, value, false) != 0)
  69. {
  70. this.LabTitle.Text = value;
  71. }
  72. }
  73. }
  74. // Token: 0x06000697 RID: 1687 RVA: 0x0000565E File Offset: 0x0000385E
  75. public string StopReader()
  76. {
  77. TextBlock labTitleRaw = this.LabTitleRaw;
  78. string result;
  79. if (labTitleRaw != null)
  80. {
  81. if ((result = labTitleRaw.Text) != null)
  82. {
  83. return result;
  84. }
  85. }
  86. result = "";
  87. return result;
  88. }
  89. // Token: 0x06000698 RID: 1688 RVA: 0x0000567B File Offset: 0x0000387B
  90. public void RestartReader(string value)
  91. {
  92. if (Operators.CompareString(this.LabTitleRaw.Text, value, false) != 0)
  93. {
  94. this.LabTitleRaw.Text = value;
  95. this.LabTitleRaw.Visibility = ((Operators.CompareString(value, "", false) == 0) ? Visibility.Collapsed : Visibility.Visible);
  96. }
  97. }
  98. // Token: 0x17000093 RID: 147
  99. // (get) Token: 0x06000699 RID: 1689 RVA: 0x000056BA File Offset: 0x000038BA
  100. // (set) Token: 0x0600069A RID: 1690 RVA: 0x000056C7 File Offset: 0x000038C7
  101. public string Description
  102. {
  103. get
  104. {
  105. return this.LabInfo.Text;
  106. }
  107. set
  108. {
  109. if (Operators.CompareString(this.LabInfo.Text, value, false) != 0)
  110. {
  111. this.LabInfo.Text = value;
  112. }
  113. }
  114. }
  115. // Token: 0x0600069B RID: 1691 RVA: 0x0003DA14 File Offset: 0x0003BC14
  116. private void LabInfo_MouseEnter(object sender, MouseEventArgs e)
  117. {
  118. if (this.IsTextTrimmed(this.LabInfo))
  119. {
  120. this.ToolTipInfo.Content = this.LabInfo.Text;
  121. this.ToolTipInfo.Width = this.LabInfo.ActualWidth + 25.0;
  122. this.LabInfo.ToolTip = this.ToolTipInfo;
  123. return;
  124. }
  125. this.LabInfo.ToolTip = null;
  126. }
  127. // Token: 0x0600069C RID: 1692 RVA: 0x0003DA84 File Offset: 0x0003BC84
  128. private bool IsTextTrimmed(TextBlock textBlock)
  129. {
  130. Typeface typeface = new Typeface(textBlock.FontFamily, textBlock.FontStyle, textBlock.FontWeight, textBlock.FontStretch);
  131. return new FormattedText(textBlock.Text, Thread.CurrentThread.CurrentCulture, textBlock.FlowDirection, typeface, textBlock.FontSize, textBlock.Foreground, (double)ModBase._ConfigurationRepository).Width > textBlock.ActualWidth;
  132. }
  133. // Token: 0x17000094 RID: 148
  134. // (set) Token: 0x0600069D RID: 1693 RVA: 0x0003DAEC File Offset: 0x0003BCEC
  135. public List<string> Tags
  136. {
  137. set
  138. {
  139. this.PanTags.Children.Clear();
  140. this.PanTags.Visibility = (Enumerable.Any<string>(value) ? Visibility.Visible : Visibility.Collapsed);
  141. try
  142. {
  143. foreach (string str in value)
  144. {
  145. object objectValue = RuntimeHelpers.GetObjectValue(ModBase.GetObjectFromXML("<Border xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\r\n Background=\"#11000000\" Padding=\"3,1\" CornerRadius=\"3\" Margin=\"0,0,3,0\" \r\n SnapsToDevicePixels=\"True\" UseLayoutRounding=\"False\">\r\n <TextBlock Text=\"" + str + "\" Foreground=\"#868686\" FontSize=\"11\" />\r\n </Border>"));
  146. this.PanTags.Children.Add((UIElement)objectValue);
  147. }
  148. }
  149. finally
  150. {
  151. List<string>.Enumerator enumerator;
  152. ((IDisposable)enumerator).Dispose();
  153. }
  154. }
  155. }
  156. // Token: 0x1400000C RID: 12
  157. // (add) Token: 0x0600069E RID: 1694 RVA: 0x0003DB8C File Offset: 0x0003BD8C
  158. // (remove) Token: 0x0600069F RID: 1695 RVA: 0x0003DBC4 File Offset: 0x0003BDC4
  159. public event MyCompItem.ClickEventHandler Click
  160. {
  161. [CompilerGenerated]
  162. add
  163. {
  164. MyCompItem.ClickEventHandler clickEventHandler = this._CandidateField;
  165. MyCompItem.ClickEventHandler clickEventHandler2;
  166. do
  167. {
  168. clickEventHandler2 = clickEventHandler;
  169. MyCompItem.ClickEventHandler value2 = (MyCompItem.ClickEventHandler)Delegate.Combine(clickEventHandler2, value);
  170. clickEventHandler = Interlocked.CompareExchange<MyCompItem.ClickEventHandler>(ref this._CandidateField, value2, clickEventHandler2);
  171. }
  172. while (clickEventHandler != clickEventHandler2);
  173. }
  174. [CompilerGenerated]
  175. remove
  176. {
  177. MyCompItem.ClickEventHandler clickEventHandler = this._CandidateField;
  178. MyCompItem.ClickEventHandler clickEventHandler2;
  179. do
  180. {
  181. clickEventHandler2 = clickEventHandler;
  182. MyCompItem.ClickEventHandler value2 = (MyCompItem.ClickEventHandler)Delegate.Remove(clickEventHandler2, value);
  183. clickEventHandler = Interlocked.CompareExchange<MyCompItem.ClickEventHandler>(ref this._CandidateField, value2, clickEventHandler2);
  184. }
  185. while (clickEventHandler != clickEventHandler2);
  186. }
  187. }
  188. // Token: 0x060006A0 RID: 1696 RVA: 0x0003DBFC File Offset: 0x0003BDFC
  189. private void Button_MouseUp(object sender, MouseButtonEventArgs e)
  190. {
  191. if (this._AdvisorField)
  192. {
  193. MyCompItem.ClickEventHandler candidateField = this._CandidateField;
  194. if (candidateField != null)
  195. {
  196. candidateField(RuntimeHelpers.GetObjectValue(sender), e);
  197. }
  198. if (!e.Handled)
  199. {
  200. ModBase.Log("[Control] 按下资源工程列表项:" + this.LabTitle.Text, ModBase.LogLevel.Normal, "出现错误");
  201. }
  202. }
  203. }
  204. // Token: 0x060006A1 RID: 1697 RVA: 0x0003DC50 File Offset: 0x0003BE50
  205. private void ProjectClick(MyCompItem sender, EventArgs e)
  206. {
  207. List<string> list = new List<string>();
  208. if (ModMain._ProcessIterator._MethodIterator.initializerMap == FormMain.PageType.CompDetail)
  209. {
  210. try
  211. {
  212. foreach (object obj in ModMain.iteratorRepository.PanResults.Children)
  213. {
  214. MyCard myCard = (MyCard)obj;
  215. if (Operators.CompareString(myCard.Title, "", false) != 0 && !myCard.IsSwaped)
  216. {
  217. list.Add(myCard.Title);
  218. }
  219. }
  220. }
  221. finally
  222. {
  223. IEnumerator enumerator;
  224. if (enumerator is IDisposable)
  225. {
  226. (enumerator as IDisposable).Dispose();
  227. }
  228. }
  229. ModBase.Log("[Comp] 记录当前已展开的卡片:" + string.Join("、", list), ModBase.LogLevel.Normal, "出现错误");
  230. NewLateBinding.LateIndexSet(ModMain._ProcessIterator._MethodIterator.m_SingletonMap, new object[]
  231. {
  232. 1,
  233. list
  234. }, null);
  235. }
  236. string text;
  237. ModComp.CompModLoaderType compModLoaderType;
  238. if (ModMain._ProcessIterator._MethodIterator.initializerMap == FormMain.PageType.CompDetail)
  239. {
  240. text = Conversions.ToString(NewLateBinding.LateIndexGet(ModMain._ProcessIterator._MethodIterator.m_SingletonMap, new object[]
  241. {
  242. 2
  243. }, null));
  244. compModLoaderType = (ModComp.CompModLoaderType)Conversions.ToInteger(NewLateBinding.LateIndexGet(ModMain._ProcessIterator._MethodIterator.m_SingletonMap, new object[]
  245. {
  246. 3
  247. }, null));
  248. }
  249. else
  250. {
  251. ModComp.CompType type = ((ModComp.CompProject)sender.Tag).Type;
  252. if (type != ModComp.CompType.Mod)
  253. {
  254. if (type != ModComp.CompType.ModPack)
  255. {
  256. text = "";
  257. }
  258. else
  259. {
  260. text = (PageDownloadPack._UtilsReader.Input.m_ParameterRepository ?? "");
  261. }
  262. }
  263. else
  264. {
  265. text = (PageDownloadMod.interceptorField.Input.m_ParameterRepository ?? "");
  266. compModLoaderType = PageDownloadMod.interceptorField.Input.processRepository;
  267. }
  268. }
  269. if (((ModComp.CompProject)sender.Tag).Type != ModComp.CompType.Mod)
  270. {
  271. compModLoaderType = ModComp.CompModLoaderType.Any;
  272. }
  273. ModMain._ProcessIterator.PageChange(new FormMain.PageStackData
  274. {
  275. initializerMap = FormMain.PageType.CompDetail,
  276. m_SingletonMap = new object[]
  277. {
  278. sender.Tag,
  279. new List<string>(),
  280. text,
  281. compModLoaderType
  282. }
  283. }, FormMain.PageSubType.Default);
  284. }
  285. // Token: 0x060006A2 RID: 1698 RVA: 0x000056E9 File Offset: 0x000038E9
  286. private void Button_MouseDown(object sender, MouseButtonEventArgs e)
  287. {
  288. if (base.IsMouseOver && this._EventField)
  289. {
  290. this._AdvisorField = true;
  291. }
  292. }
  293. // Token: 0x060006A3 RID: 1699 RVA: 0x00005702 File Offset: 0x00003902
  294. private void Button_MouseLeave(object sender, object e)
  295. {
  296. this._AdvisorField = false;
  297. }
  298. // Token: 0x17000095 RID: 149
  299. // (get) Token: 0x060006A4 RID: 1700 RVA: 0x0003DE68 File Offset: 0x0003C068
  300. public Border RectBack
  301. {
  302. get
  303. {
  304. if (this._AccountField == null)
  305. {
  306. Border border = new Border
  307. {
  308. Name = "RectBack",
  309. CornerRadius = new CornerRadius(3.0),
  310. RenderTransform = new ScaleTransform(0.8, 0.8),
  311. RenderTransformOrigin = new Point(0.5, 0.5),
  312. BorderThickness = new Thickness(ModBase.smethod_4(1.0)),
  313. SnapsToDevicePixels = true,
  314. IsHitTestVisible = false,
  315. Opacity = 0.0
  316. };
  317. border.SetResourceReference(Border.BackgroundProperty, "ColorBrush7");
  318. border.SetResourceReference(Border.BorderBrushProperty, "ColorBrush6");
  319. Grid.SetColumnSpan(border, 999);
  320. Grid.SetRowSpan(border, 999);
  321. base.Children.Insert(0, border);
  322. this._AccountField = border;
  323. }
  324. return this._AccountField;
  325. }
  326. }
  327. // Token: 0x060006A5 RID: 1701 RVA: 0x0003DF68 File Offset: 0x0003C168
  328. public void RefreshColor(object sender, EventArgs e)
  329. {
  330. if (this._EventField)
  331. {
  332. string right;
  333. int num;
  334. if (base.IsMouseOver)
  335. {
  336. if (this._AdvisorField)
  337. {
  338. right = "MouseDown";
  339. num = 120;
  340. }
  341. else
  342. {
  343. right = "MouseOver";
  344. num = 120;
  345. }
  346. }
  347. else
  348. {
  349. right = "Idle";
  350. num = 180;
  351. }
  352. if (Operators.CompareString(this.queueField, right, false) != 0)
  353. {
  354. this.queueField = right;
  355. if (base.IsLoaded && ModAnimation.CalcParser() == 0)
  356. {
  357. List<ModAnimation.AniData> list = new List<ModAnimation.AniData>();
  358. if (base.IsMouseOver)
  359. {
  360. list.AddRange(new ModAnimation.AniData[]
  361. {
  362. ModAnimation.AaColor(this.RectBack, Border.BackgroundProperty, this._AdvisorField ? "ColorBrush6" : "ColorBrushBg1", num, 0, null, false),
  363. ModAnimation.AaOpacity(this.RectBack, 1.0 - this.RectBack.Opacity, num, 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Middle), false)
  364. });
  365. if (this._AdvisorField)
  366. {
  367. list.Add(ModAnimation.AaScaleTransform(this.RectBack, 0.996 - ((ScaleTransform)this.RectBack.RenderTransform).ScaleX, checked((int)Math.Round(unchecked((double)num * 1.2))), 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Middle), false));
  368. }
  369. else
  370. {
  371. list.Add(ModAnimation.AaScaleTransform(this.RectBack, 1.0 - ((ScaleTransform)this.RectBack.RenderTransform).ScaleX, checked((int)Math.Round(unchecked((double)num * 1.2))), 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Middle), false));
  372. }
  373. }
  374. else
  375. {
  376. list.AddRange(new ModAnimation.AniData[]
  377. {
  378. ModAnimation.AaOpacity(this.RectBack, -this.RectBack.Opacity, num, 0, null, false),
  379. ModAnimation.AaColor(this.RectBack, Border.BackgroundProperty, this._AdvisorField ? "ColorBrush6" : "ColorBrush7", num, 0, null, false),
  380. ModAnimation.AaScaleTransform(this.RectBack, 0.996 - ((ScaleTransform)this.RectBack.RenderTransform).ScaleX, num, 0, new ModAnimation.AniEaseOutFluent(ModAnimation.AniEasePower.Middle), false),
  381. ModAnimation.AaScaleTransform(this.RectBack, -0.196, 1, 0, null, true)
  382. });
  383. }
  384. ModAnimation.AniStart(list, "CompItem Color " + Conversions.ToString(this.m_AttrField), false);
  385. return;
  386. }
  387. ModAnimation.AniStop("CompItem Color " + Conversions.ToString(this.m_AttrField));
  388. if (this._AccountField != null)
  389. {
  390. this.RectBack.Opacity = 0.0;
  391. }
  392. }
  393. }
  394. }
  395. // Token: 0x17000096 RID: 150
  396. // (get) Token: 0x060006A6 RID: 1702 RVA: 0x0000570B File Offset: 0x0000390B
  397. // (set) Token: 0x060006A7 RID: 1703 RVA: 0x00005713 File Offset: 0x00003913
  398. internal virtual MyCompItem PanBack { get; set; }
  399. // Token: 0x17000097 RID: 151
  400. // (get) Token: 0x060006A8 RID: 1704 RVA: 0x0000571C File Offset: 0x0000391C
  401. // (set) Token: 0x060006A9 RID: 1705 RVA: 0x00005724 File Offset: 0x00003924
  402. internal virtual MyImage PathLogo { get; set; }
  403. // Token: 0x17000098 RID: 152
  404. // (get) Token: 0x060006AA RID: 1706 RVA: 0x0000572D File Offset: 0x0000392D
  405. // (set) Token: 0x060006AB RID: 1707 RVA: 0x00005735 File Offset: 0x00003935
  406. internal virtual TextBlock LabTitle { get; set; }
  407. // Token: 0x17000099 RID: 153
  408. // (get) Token: 0x060006AC RID: 1708 RVA: 0x0000573E File Offset: 0x0000393E
  409. // (set) Token: 0x060006AD RID: 1709 RVA: 0x00005746 File Offset: 0x00003946
  410. internal virtual TextBlock LabTitleRaw { get; set; }
  411. // Token: 0x1700009A RID: 154
  412. // (get) Token: 0x060006AE RID: 1710 RVA: 0x0000574F File Offset: 0x0000394F
  413. // (set) Token: 0x060006AF RID: 1711 RVA: 0x00005757 File Offset: 0x00003957
  414. internal virtual StackPanel PanTags { get; set; }
  415. // Token: 0x1700009B RID: 155
  416. // (get) Token: 0x060006B0 RID: 1712 RVA: 0x00005760 File Offset: 0x00003960
  417. // (set) Token: 0x060006B1 RID: 1713 RVA: 0x0003E20C File Offset: 0x0003C40C
  418. internal virtual TextBlock LabInfo
  419. {
  420. [CompilerGenerated]
  421. get
  422. {
  423. return this._CodeField;
  424. }
  425. [CompilerGenerated]
  426. set
  427. {
  428. MouseEventHandler value2 = new MouseEventHandler(this.LabInfo_MouseEnter);
  429. TextBlock codeField = this._CodeField;
  430. if (codeField != null)
  431. {
  432. codeField.MouseEnter -= value2;
  433. }
  434. this._CodeField = value;
  435. codeField = this._CodeField;
  436. if (codeField != null)
  437. {
  438. codeField.MouseEnter += value2;
  439. }
  440. }
  441. }
  442. // Token: 0x1700009C RID: 156
  443. // (get) Token: 0x060006B2 RID: 1714 RVA: 0x00005768 File Offset: 0x00003968
  444. // (set) Token: 0x060006B3 RID: 1715 RVA: 0x00005770 File Offset: 0x00003970
  445. internal virtual ToolTip ToolTipInfo { get; set; }
  446. // Token: 0x1700009D RID: 157
  447. // (get) Token: 0x060006B4 RID: 1716 RVA: 0x00005779 File Offset: 0x00003979
  448. // (set) Token: 0x060006B5 RID: 1717 RVA: 0x00005781 File Offset: 0x00003981
  449. internal virtual ColumnDefinition ColumnVersion1 { get; set; }
  450. // Token: 0x1700009E RID: 158
  451. // (get) Token: 0x060006B6 RID: 1718 RVA: 0x0000578A File Offset: 0x0000398A
  452. // (set) Token: 0x060006B7 RID: 1719 RVA: 0x00005792 File Offset: 0x00003992
  453. internal virtual ColumnDefinition ColumnVersion2 { get; set; }
  454. // Token: 0x1700009F RID: 159
  455. // (get) Token: 0x060006B8 RID: 1720 RVA: 0x0000579B File Offset: 0x0000399B
  456. // (set) Token: 0x060006B9 RID: 1721 RVA: 0x000057A3 File Offset: 0x000039A3
  457. internal virtual ColumnDefinition ColumnVersion3 { get; set; }
  458. // Token: 0x170000A0 RID: 160
  459. // (get) Token: 0x060006BA RID: 1722 RVA: 0x000057AC File Offset: 0x000039AC
  460. // (set) Token: 0x060006BB RID: 1723 RVA: 0x000057B4 File Offset: 0x000039B4
  461. internal virtual ColumnDefinition ColumnTime1 { get; set; }
  462. // Token: 0x170000A1 RID: 161
  463. // (get) Token: 0x060006BC RID: 1724 RVA: 0x000057BD File Offset: 0x000039BD
  464. // (set) Token: 0x060006BD RID: 1725 RVA: 0x000057C5 File Offset: 0x000039C5
  465. internal virtual ColumnDefinition ColumnTime2 { get; set; }
  466. // Token: 0x170000A2 RID: 162
  467. // (get) Token: 0x060006BE RID: 1726 RVA: 0x000057CE File Offset: 0x000039CE
  468. // (set) Token: 0x060006BF RID: 1727 RVA: 0x000057D6 File Offset: 0x000039D6
  469. internal virtual ColumnDefinition ColumnTime3 { get; set; }
  470. // Token: 0x170000A3 RID: 163
  471. // (get) Token: 0x060006C0 RID: 1728 RVA: 0x000057DF File Offset: 0x000039DF
  472. // (set) Token: 0x060006C1 RID: 1729 RVA: 0x000057E7 File Offset: 0x000039E7
  473. internal virtual Path PathVersion { get; set; }
  474. // Token: 0x170000A4 RID: 164
  475. // (get) Token: 0x060006C2 RID: 1730 RVA: 0x000057F0 File Offset: 0x000039F0
  476. // (set) Token: 0x060006C3 RID: 1731 RVA: 0x000057F8 File Offset: 0x000039F8
  477. internal virtual TextBlock LabVersion { get; set; }
  478. // Token: 0x170000A5 RID: 165
  479. // (get) Token: 0x060006C4 RID: 1732 RVA: 0x00005801 File Offset: 0x00003A01
  480. // (set) Token: 0x060006C5 RID: 1733 RVA: 0x00005809 File Offset: 0x00003A09
  481. internal virtual Path PathDownload { get; set; }
  482. // Token: 0x170000A6 RID: 166
  483. // (get) Token: 0x060006C6 RID: 1734 RVA: 0x00005812 File Offset: 0x00003A12
  484. // (set) Token: 0x060006C7 RID: 1735 RVA: 0x0000581A File Offset: 0x00003A1A
  485. internal virtual TextBlock LabDownload { get; set; }
  486. // Token: 0x170000A7 RID: 167
  487. // (get) Token: 0x060006C8 RID: 1736 RVA: 0x00005823 File Offset: 0x00003A23
  488. // (set) Token: 0x060006C9 RID: 1737 RVA: 0x0000582B File Offset: 0x00003A2B
  489. internal virtual Path PathTime { get; set; }
  490. // Token: 0x170000A8 RID: 168
  491. // (get) Token: 0x060006CA RID: 1738 RVA: 0x00005834 File Offset: 0x00003A34
  492. // (set) Token: 0x060006CB RID: 1739 RVA: 0x0000583C File Offset: 0x00003A3C
  493. internal virtual TextBlock LabTime { get; set; }
  494. // Token: 0x170000A9 RID: 169
  495. // (get) Token: 0x060006CC RID: 1740 RVA: 0x00005845 File Offset: 0x00003A45
  496. // (set) Token: 0x060006CD RID: 1741 RVA: 0x0000584D File Offset: 0x00003A4D
  497. internal virtual Path PathSource { get; set; }
  498. // Token: 0x170000AA RID: 170
  499. // (get) Token: 0x060006CE RID: 1742 RVA: 0x00005856 File Offset: 0x00003A56
  500. // (set) Token: 0x060006CF RID: 1743 RVA: 0x0000585E File Offset: 0x00003A5E
  501. internal virtual TextBlock LabSource { get; set; }
  502. // Token: 0x060006D0 RID: 1744 RVA: 0x0003E250 File Offset: 0x0003C450
  503. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  504. public void InitializeComponent()
  505. {
  506. if (!this._CustomerField)
  507. {
  508. this._CustomerField = true;
  509. Uri resourceLocator = new Uri("/Plain Craft Launcher 2;component/modules/minecraft/mycompitem.xaml", UriKind.Relative);
  510. Application.LoadComponent(this, resourceLocator);
  511. }
  512. }
  513. // Token: 0x060006D1 RID: 1745 RVA: 0x0000414E File Offset: 0x0000234E
  514. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  515. internal Delegate _CreateDelegate(Type delegateType, string handler)
  516. {
  517. return Delegate.CreateDelegate(delegateType, this, handler);
  518. }
  519. // Token: 0x060006D2 RID: 1746 RVA: 0x0003E280 File Offset: 0x0003C480
  520. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  521. [EditorBrowsable(EditorBrowsableState.Never)]
  522. public void System_Windows_Markup_IComponentConnector_Connect(int connectionId, object target)
  523. {
  524. if (connectionId == 1)
  525. {
  526. this.PanBack = (MyCompItem)target;
  527. return;
  528. }
  529. if (connectionId == 2)
  530. {
  531. this.PathLogo = (MyImage)target;
  532. return;
  533. }
  534. if (connectionId == 3)
  535. {
  536. this.LabTitle = (TextBlock)target;
  537. return;
  538. }
  539. if (connectionId == 4)
  540. {
  541. this.LabTitleRaw = (TextBlock)target;
  542. return;
  543. }
  544. if (connectionId == 5)
  545. {
  546. this.PanTags = (StackPanel)target;
  547. return;
  548. }
  549. if (connectionId == 6)
  550. {
  551. this.LabInfo = (TextBlock)target;
  552. return;
  553. }
  554. if (connectionId == 7)
  555. {
  556. this.ToolTipInfo = (ToolTip)target;
  557. return;
  558. }
  559. if (connectionId == 8)
  560. {
  561. this.ColumnVersion1 = (ColumnDefinition)target;
  562. return;
  563. }
  564. if (connectionId == 9)
  565. {
  566. this.ColumnVersion2 = (ColumnDefinition)target;
  567. return;
  568. }
  569. if (connectionId == 10)
  570. {
  571. this.ColumnVersion3 = (ColumnDefinition)target;
  572. return;
  573. }
  574. if (connectionId == 11)
  575. {
  576. this.ColumnTime1 = (ColumnDefinition)target;
  577. return;
  578. }
  579. if (connectionId == 12)
  580. {
  581. this.ColumnTime2 = (ColumnDefinition)target;
  582. return;
  583. }
  584. if (connectionId == 13)
  585. {
  586. this.ColumnTime3 = (ColumnDefinition)target;
  587. return;
  588. }
  589. if (connectionId == 14)
  590. {
  591. this.PathVersion = (Path)target;
  592. return;
  593. }
  594. if (connectionId == 15)
  595. {
  596. this.LabVersion = (TextBlock)target;
  597. return;
  598. }
  599. if (connectionId == 16)
  600. {
  601. this.PathDownload = (Path)target;
  602. return;
  603. }
  604. if (connectionId == 17)
  605. {
  606. this.LabDownload = (TextBlock)target;
  607. return;
  608. }
  609. if (connectionId == 18)
  610. {
  611. this.PathTime = (Path)target;
  612. return;
  613. }
  614. if (connectionId == 19)
  615. {
  616. this.LabTime = (TextBlock)target;
  617. return;
  618. }
  619. if (connectionId == 20)
  620. {
  621. this.PathSource = (Path)target;
  622. return;
  623. }
  624. if (connectionId == 21)
  625. {
  626. this.LabSource = (TextBlock)target;
  627. return;
  628. }
  629. this._CustomerField = true;
  630. }
  631. // Token: 0x040003D3 RID: 979
  632. public int m_AttrField;
  633. // Token: 0x040003D4 RID: 980
  634. [CompilerGenerated]
  635. private MyCompItem.ClickEventHandler _CandidateField;
  636. // Token: 0x040003D5 RID: 981
  637. private bool _AdvisorField;
  638. // Token: 0x040003D6 RID: 982
  639. private Border _AccountField;
  640. // Token: 0x040003D7 RID: 983
  641. private string queueField;
  642. // Token: 0x040003D8 RID: 984
  643. public bool _EventField;
  644. // Token: 0x040003D9 RID: 985
  645. [CompilerGenerated]
  646. [AccessedThroughProperty("PanBack")]
  647. private MyCompItem managerField;
  648. // Token: 0x040003DA RID: 986
  649. [CompilerGenerated]
  650. [AccessedThroughProperty("PathLogo")]
  651. private MyImage m_ModelField;
  652. // Token: 0x040003DB RID: 987
  653. [AccessedThroughProperty("LabTitle")]
  654. [CompilerGenerated]
  655. private TextBlock wrapperField;
  656. // Token: 0x040003DC RID: 988
  657. [CompilerGenerated]
  658. [AccessedThroughProperty("LabTitleRaw")]
  659. private TextBlock _BaseField;
  660. // Token: 0x040003DD RID: 989
  661. [CompilerGenerated]
  662. [AccessedThroughProperty("PanTags")]
  663. private StackPanel m_AttributeField;
  664. // Token: 0x040003DE RID: 990
  665. [AccessedThroughProperty("LabInfo")]
  666. [CompilerGenerated]
  667. private TextBlock _CodeField;
  668. // Token: 0x040003DF RID: 991
  669. [AccessedThroughProperty("ToolTipInfo")]
  670. [CompilerGenerated]
  671. private ToolTip _PrototypeField;
  672. // Token: 0x040003E0 RID: 992
  673. [AccessedThroughProperty("ColumnVersion1")]
  674. [CompilerGenerated]
  675. private ColumnDefinition annotationField;
  676. // Token: 0x040003E1 RID: 993
  677. [AccessedThroughProperty("ColumnVersion2")]
  678. [CompilerGenerated]
  679. private ColumnDefinition m_InfoField;
  680. // Token: 0x040003E2 RID: 994
  681. [AccessedThroughProperty("ColumnVersion3")]
  682. [CompilerGenerated]
  683. private ColumnDefinition adapterField;
  684. // Token: 0x040003E3 RID: 995
  685. [CompilerGenerated]
  686. [AccessedThroughProperty("ColumnTime1")]
  687. private ColumnDefinition facadeField;
  688. // Token: 0x040003E4 RID: 996
  689. [AccessedThroughProperty("ColumnTime2")]
  690. [CompilerGenerated]
  691. private ColumnDefinition _MerchantField;
  692. // Token: 0x040003E5 RID: 997
  693. [CompilerGenerated]
  694. [AccessedThroughProperty("ColumnTime3")]
  695. private ColumnDefinition _AuthenticationField;
  696. // Token: 0x040003E6 RID: 998
  697. [CompilerGenerated]
  698. [AccessedThroughProperty("PathVersion")]
  699. private Path _AlgoField;
  700. // Token: 0x040003E7 RID: 999
  701. [CompilerGenerated]
  702. [AccessedThroughProperty("LabVersion")]
  703. private TextBlock comparatorField;
  704. // Token: 0x040003E8 RID: 1000
  705. [AccessedThroughProperty("PathDownload")]
  706. [CompilerGenerated]
  707. private Path _MappingField;
  708. // Token: 0x040003E9 RID: 1001
  709. [AccessedThroughProperty("LabDownload")]
  710. [CompilerGenerated]
  711. private TextBlock tokenizerField;
  712. // Token: 0x040003EA RID: 1002
  713. [CompilerGenerated]
  714. [AccessedThroughProperty("PathTime")]
  715. private Path _FilterField;
  716. // Token: 0x040003EB RID: 1003
  717. [AccessedThroughProperty("LabTime")]
  718. [CompilerGenerated]
  719. private TextBlock databaseField;
  720. // Token: 0x040003EC RID: 1004
  721. [CompilerGenerated]
  722. [AccessedThroughProperty("PathSource")]
  723. private Path _PredicateField;
  724. // Token: 0x040003ED RID: 1005
  725. [CompilerGenerated]
  726. [AccessedThroughProperty("LabSource")]
  727. private TextBlock m_PoolField;
  728. // Token: 0x040003EE RID: 1006
  729. private bool _CustomerField;
  730. // Token: 0x020000DF RID: 223
  731. // (Invoke) Token: 0x060006D8 RID: 1752
  732. public delegate void ClickEventHandler(object sender, MouseButtonEventArgs e);
  733. }
  734. }