Application.xaml.cs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Net;
  8. using System.Reflection;
  9. using System.Runtime.CompilerServices;
  10. using System.Runtime.InteropServices;
  11. using System.Text;
  12. using System.Threading;
  13. using System.Windows;
  14. using System.Windows.Controls;
  15. using System.Windows.Controls.Primitives;
  16. using System.Windows.Markup;
  17. using System.Windows.Threading;
  18. using Microsoft.VisualBasic;
  19. using Microsoft.VisualBasic.ApplicationServices;
  20. using Microsoft.VisualBasic.CompilerServices;
  21. using Newtonsoft.Json;
  22. using Newtonsoft.Json.Linq;
  23. using PCL.My;
  24. namespace PCL
  25. {
  26. // Token: 0x020001C0 RID: 448
  27. public partial class Application : Application, IStyleConnector
  28. {
  29. // Token: 0x060014B9 RID: 5305 RVA: 0x0008AADC File Offset: 0x00088CDC
  30. public Application()
  31. {
  32. base.Startup += this.Application_Startup;
  33. base.SessionEnding += this.Application_SessionEnding;
  34. base.DispatcherUnhandledException += this.Application_DispatcherUnhandledException;
  35. this.m_RepositoryComposer = false;
  36. }
  37. // Token: 0x060014BA RID: 5306 RVA: 0x0008AB2C File Offset: 0x00088D2C
  38. private void Application_Startup(object sender, System.Windows.StartupEventArgs e)
  39. {
  40. checked
  41. {
  42. try
  43. {
  44. ModSecret.SecretOnApplicationStart();
  45. if (e.Args.Length > 0)
  46. {
  47. if (Operators.CompareString(e.Args[0], "--update", false) == 0)
  48. {
  49. ModSecret.UpdateReplace(Conversions.ToInteger(e.Args[1]), e.Args[2].Trim(new char[]
  50. {
  51. '"'
  52. }), e.Args[3].Trim(new char[]
  53. {
  54. '"'
  55. }), Conversions.ToBoolean(e.Args[4]));
  56. Environment.Exit(4);
  57. }
  58. else if (e.Args[0].StartsWithF("--memory", false))
  59. {
  60. ulong availablePhysicalMemory = MyWpfExtension.ManageParser().Info.AvailablePhysicalMemory;
  61. try
  62. {
  63. PageOtherTest.MemoryOptimizeInternal(false);
  64. }
  65. catch (Exception ex)
  66. {
  67. Interaction.MsgBox(ex.Message, MsgBoxStyle.Critical, "内存优化失败");
  68. Environment.Exit(-1);
  69. }
  70. if (MyWpfExtension.ManageParser().Info.AvailablePhysicalMemory < availablePhysicalMemory)
  71. {
  72. Environment.Exit(0);
  73. }
  74. else
  75. {
  76. Environment.Exit((int)Math.Round((MyWpfExtension.ManageParser().Info.AvailablePhysicalMemory - availablePhysicalMemory) / 1024.0));
  77. }
  78. }
  79. }
  80. Directory.CreateDirectory(ModBase.Path + "PCL\\Pictures");
  81. Directory.CreateDirectory(ModBase.Path + "PCL\\Musics");
  82. try
  83. {
  84. Directory.CreateDirectory(ModBase.m_DecoratorRepository);
  85. if (!ModBase.CheckPermission(ModBase.m_DecoratorRepository))
  86. {
  87. throw new Exception("PCL 没有对 " + ModBase.m_DecoratorRepository + " 的访问权限");
  88. }
  89. }
  90. catch (Exception ex2)
  91. {
  92. if (Operators.CompareString(ModBase.m_DecoratorRepository, Path.GetTempPath() + "PCL\\", false) == 0)
  93. {
  94. ModMain.MyMsgBox("PCL 无法访问缓存文件夹,可能导致程序出错或无法正常使用!\r\n错误原因:" + ModBase.GetExceptionDetail(ex2, false), "缓存文件夹不可用", "确定", "", "", false, true, false, null, null, null);
  95. }
  96. else
  97. {
  98. ModMain.MyMsgBox("手动设置的缓存文件夹不可用,PCL 将使用默认缓存文件夹。\r\n错误原因:" + ModBase.GetExceptionDetail(ex2, false), "缓存文件夹不可用", "确定", "", "", false, true, false, null, null, null);
  99. ModBase.m_IdentifierRepository.Set("SystemSystemCache", "", false, null);
  100. ModBase.m_DecoratorRepository = Path.GetTempPath() + "PCL\\";
  101. }
  102. }
  103. Directory.CreateDirectory(ModBase.m_DecoratorRepository + "Cache");
  104. Directory.CreateDirectory(ModBase.m_DecoratorRepository + "Download");
  105. Directory.CreateDirectory(ModBase.m_InstanceRepository);
  106. bool flag = e.Args.Length > 0 && Operators.CompareString(e.Args[0], "--wait", false) == 0;
  107. int num = 0;
  108. IntPtr intPtr;
  109. for (;;)
  110. {
  111. string text = null;
  112. string text2 = "Plain Craft Launcher\u3000";
  113. intPtr = ModMain.FindWindowA(ref text, ref text2);
  114. if (intPtr == IntPtr.Zero)
  115. {
  116. text2 = null;
  117. text = "Plain Craft Launcher 2\u3000";
  118. ModMain.FindWindowA(ref text2, ref text);
  119. }
  120. if (!(intPtr != IntPtr.Zero))
  121. {
  122. goto IL_306;
  123. }
  124. if (!flag || num >= 20)
  125. {
  126. break;
  127. }
  128. num++;
  129. Thread.Sleep(500);
  130. }
  131. ModMain.ShowWindowToTop(intPtr);
  132. Interaction.Beep();
  133. Environment.Exit(4);
  134. IL_306:
  135. ToolTipService.InitialShowDelayProperty.OverrideMetadata(typeof(DependencyObject), new FrameworkPropertyMetadata(300));
  136. ToolTipService.BetweenShowDelayProperty.OverrideMetadata(typeof(DependencyObject), new FrameworkPropertyMetadata(400));
  137. ToolTipService.ShowDurationProperty.OverrideMetadata(typeof(DependencyObject), new FrameworkPropertyMetadata(9999999));
  138. ToolTipService.PlacementProperty.OverrideMetadata(typeof(DependencyObject), new FrameworkPropertyMetadata(PlacementMode.Bottom));
  139. ToolTipService.HorizontalOffsetProperty.OverrideMetadata(typeof(DependencyObject), new FrameworkPropertyMetadata(8.0));
  140. ToolTipService.VerticalOffsetProperty.OverrideMetadata(typeof(DependencyObject), new FrameworkPropertyMetadata(4.0));
  141. if (Conversions.ToBoolean(ModBase.m_IdentifierRepository.Get("UiLauncherLogo", null)))
  142. {
  143. ModMain.m_ParameterIterator = new SplashScreen("Images\\icon.ico");
  144. ModMain.m_ParameterIterator.Show(false, true);
  145. }
  146. AppDomain.CurrentDomain.AssemblyResolve += Application.AssemblyResolve;
  147. ModBase.LogStart();
  148. ModBase.Log(string.Format("[Start] 程序版本:{0} ({1}{2})", "Release 2.8.12", 347, ""), ModBase.LogLevel.Normal, "出现错误");
  149. ModBase.Log(string.Format("[Start] 识别码:{0}{1}", ModBase._TagRepository, ModSecret.InsertReader(9) ? ",已解锁反馈主题" : ""), ModBase.LogLevel.Normal, "出现错误");
  150. ModBase.Log(string.Format("[Start] 程序路径:{0}", ModBase.interpreterRepository), ModBase.LogLevel.Normal, "出现错误");
  151. ModBase.Log(string.Format("[Start] 系统编码:{0} ({1}, GBK={2})", Encoding.Default.HeaderName, Encoding.Default.CodePage, ModBase.rulesRepository), ModBase.LogLevel.Normal, "出现错误");
  152. ModBase.Log(string.Format("[Start] 管理员权限:{0}", ModBase.IsAdmin()), ModBase.LogLevel.Normal, "出现错误");
  153. if (ModBase.Path.Contains(Path.GetTempPath()) || ModBase.Path.Contains("AppData\\Local\\Temp\\"))
  154. {
  155. ModMain.MyMsgBox("请将 PCL 从压缩包中解压之后再使用!\r\n在当前环境下运行可能会导致丢失游戏存档或设置,部分功能也可能无法使用!", "环境警告", "我知道了", "", "", true, true, false, null, null, null);
  156. }
  157. if (ModBase.m_StubRepository)
  158. {
  159. ModMain.MyMsgBox("PCL 和新版 Minecraft 均不再支持 32 位系统,部分功能将无法使用。\r\n非常建议重装为 64 位系统后再进行游戏!", "环境警告", "我知道了", "", "", true, true, false, null, null, null);
  160. }
  161. ModBase.m_IdentifierRepository.Load("SystemDebugMode", false, null);
  162. ModBase.m_IdentifierRepository.Load("SystemDebugAnim", false, null);
  163. ModBase.m_IdentifierRepository.Load("ToolDownloadThread", false, null);
  164. ModBase.m_IdentifierRepository.Load("ToolDownloadCert", false, null);
  165. ServicePointManager.Expect100Continue = true;
  166. ServicePointManager.SecurityProtocol = (SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12);
  167. ServicePointManager.DefaultConnectionLimit = 1024;
  168. ModBase.Log("[Start] 第一阶段加载用时:" + Conversions.ToString(ModBase.GetTimeTick() - ModBase._SystemRepository) + " ms", ModBase.LogLevel.Normal, "出现错误");
  169. ModBase._SystemRepository = ModBase.GetTimeTick();
  170. ModAnimation.AssetParser(ModAnimation.CalcParser() + 1);
  171. }
  172. catch (Exception ex3)
  173. {
  174. string text3 = null;
  175. try
  176. {
  177. text3 = ModBase.interpreterRepository;
  178. }
  179. catch (Exception ex4)
  180. {
  181. }
  182. Interaction.MsgBox(ModBase.GetExceptionDetail(ex3, true) + "\r\nPCL 所在路径:" + (string.IsNullOrEmpty(text3) ? "获取失败" : text3), MsgBoxStyle.Critical, "PCL 初始化错误");
  183. FormMain.EndProgramForce(ModBase.Result.Exception);
  184. }
  185. }
  186. }
  187. // Token: 0x060014BB RID: 5307 RVA: 0x00005034 File Offset: 0x00003234
  188. private void Application_SessionEnding(object sender, SessionEndingCancelEventArgs e)
  189. {
  190. ModMain._ProcessIterator.EndProgram(false);
  191. }
  192. // Token: 0x060014BC RID: 5308 RVA: 0x0008B20C File Offset: 0x0008940C
  193. private void Application_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
  194. {
  195. int num;
  196. int num4;
  197. object obj;
  198. try
  199. {
  200. IL_00:
  201. ProjectData.ClearProjectError();
  202. num = 1;
  203. IL_07:
  204. int num2 = 2;
  205. e.Handled = true;
  206. IL_10:
  207. num2 = 3;
  208. if (ModBase._ObserverRepository)
  209. {
  210. goto IL_D1;
  211. }
  212. IL_1C:
  213. num2 = 5;
  214. if (!this.m_RepositoryComposer)
  215. {
  216. goto IL_33;
  217. }
  218. IL_26:
  219. num2 = 6;
  220. FormMain.EndProgramForce(ModBase.Result.Exception);
  221. goto IL_D1;
  222. IL_33:
  223. num2 = 8;
  224. this.m_RepositoryComposer = true;
  225. IL_3C:
  226. num2 = 9;
  227. string exceptionDetail = ModBase.GetExceptionDetail(e.Exception, true);
  228. IL_4C:
  229. num2 = 10;
  230. if (exceptionDetail.Contains("System.Windows.Threading.Dispatcher.Invoke") || exceptionDetail.Contains("MS.Internal.AppModel.ITaskbarList.HrInit") || exceptionDetail.Contains(".NET Framework") || exceptionDetail.Contains("未能加载文件或程序集"))
  231. {
  232. goto IL_A6;
  233. }
  234. IL_83:
  235. num2 = 15;
  236. ModBase.FeedbackInfo();
  237. IL_8B:
  238. num2 = 16;
  239. ModBase.Log(e.Exception, "程序出现未知错误", ModBase.LogLevel.Assert, "锟斤拷烫烫烫");
  240. goto IL_D1;
  241. IL_A6:
  242. num2 = 11;
  243. ModBase.OpenWebsite("https://dotnet.microsoft.com/zh-cn/download/dotnet-framework/thank-you/net462-offline-installer");
  244. IL_B3:
  245. num2 = 12;
  246. Interaction.MsgBox("你的 .NET Framework 版本过低或损坏,请下载并重新安装 .NET Framework 4.6.2!", MsgBoxStyle.Information, "运行环境错误");
  247. IL_C8:
  248. num2 = 13;
  249. FormMain.EndProgramForce(ModBase.Result.Cancel);
  250. IL_D1:
  251. goto IL_167;
  252. IL_D6:
  253. int num3 = num4 + 1;
  254. num4 = 0;
  255. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
  256. IL_128:
  257. goto IL_15C;
  258. IL_12A:
  259. num4 = num2;
  260. @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
  261. IL_13A:;
  262. }
  263. catch when (endfilter(obj is Exception & num != 0 & num4 == 0))
  264. {
  265. Exception ex = (Exception)obj2;
  266. goto IL_12A;
  267. }
  268. IL_15C:
  269. throw ProjectData.CreateProjectError(-2146828237);
  270. IL_167:
  271. if (num4 != 0)
  272. {
  273. ProjectData.ClearProjectError();
  274. }
  275. }
  276. // Token: 0x060014BD RID: 5309
  277. [DllImport("kernel32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
  278. private static extern bool SetDllDirectoryA([MarshalAs(UnmanagedType.VBByRefStr)] ref string lpPathName);
  279. // Token: 0x060014BE RID: 5310 RVA: 0x0008B3A4 File Offset: 0x000895A4
  280. public static Assembly AssemblyResolve(object sender, ResolveEventArgs args)
  281. {
  282. if (args.Name.StartsWithF("NAudio", false))
  283. {
  284. object obj = Application.specificationComposer;
  285. ObjectFlowControl.CheckForSyncLockOnValueType(obj);
  286. lock (obj)
  287. {
  288. if (Application._TestComposer == null)
  289. {
  290. ModBase.Log("[Start] 加载 DLL:NAudio", ModBase.LogLevel.Normal, "出现错误");
  291. Application._TestComposer = Assembly.Load(ModBase.GetResources("NAudio"));
  292. }
  293. return Application._TestComposer;
  294. }
  295. }
  296. if (args.Name.StartsWithF("Newtonsoft.Json", false))
  297. {
  298. object mockComposer = Application.m_MockComposer;
  299. ObjectFlowControl.CheckForSyncLockOnValueType(mockComposer);
  300. lock (mockComposer)
  301. {
  302. if (Application.mapComposer == null)
  303. {
  304. ModBase.Log("[Start] 加载 DLL:Json", ModBase.LogLevel.Normal, "出现错误");
  305. Application.mapComposer = Assembly.Load(ModBase.GetResources("Json"));
  306. }
  307. return Application.mapComposer;
  308. }
  309. }
  310. if (args.Name.StartsWithF("Ookii.Dialogs.Wpf", false))
  311. {
  312. object requestComposer = Application._RequestComposer;
  313. ObjectFlowControl.CheckForSyncLockOnValueType(requestComposer);
  314. lock (requestComposer)
  315. {
  316. if (Application.errorComposer == null)
  317. {
  318. ModBase.Log("[Start] 加载 DLL:Dialogs", ModBase.LogLevel.Normal, "出现错误");
  319. Application.errorComposer = Assembly.Load(ModBase.GetResources("Dialogs"));
  320. }
  321. return Application.errorComposer;
  322. }
  323. }
  324. if (args.Name.StartsWithF("Imazen.WebP", false))
  325. {
  326. object obj2 = Application.dicComposer;
  327. ObjectFlowControl.CheckForSyncLockOnValueType(obj2);
  328. lock (obj2)
  329. {
  330. if (Application._ContextComposer == null)
  331. {
  332. ModBase.Log("[Start] 加载 DLL:Imazen.WebP", ModBase.LogLevel.Normal, "出现错误");
  333. Application._ContextComposer = Assembly.Load(ModBase.GetResources("Imazen_WebP"));
  334. string text = ModBase._MethodRepository.TrimEnd(new char[]
  335. {
  336. '\\'
  337. });
  338. Application.SetDllDirectoryA(ref text);
  339. ModBase.WriteFile(ModBase._MethodRepository + "libwebp.dll", ModBase.GetResources("libwebp64"), false);
  340. }
  341. return Application._ContextComposer;
  342. }
  343. }
  344. return null;
  345. }
  346. // Token: 0x060014BF RID: 5311 RVA: 0x0008B5D8 File Offset: 0x000897D8
  347. private void MyIconButton_Click(object sender, EventArgs e)
  348. {
  349. object left = ModBase.m_IdentifierRepository.Get("LoginType", null);
  350. if (Operators.ConditionalCompareObjectEqual(left, ModLaunch.McLoginType.Ms, false))
  351. {
  352. JObject jobject = (JObject)ModBase.GetJson(Conversions.ToString(ModBase.m_IdentifierRepository.Get("LoginMsJson", null)));
  353. jobject.Remove(Conversions.ToString(NewLateBinding.LateGet(sender, null, "Tag", new object[0], null, null, null)));
  354. ModBase.m_IdentifierRepository.Set("LoginMsJson", jobject.ToString(0, new JsonConverter[0]), false, null);
  355. if (ModMain.m_ClientRepository.ComboAccounts.SelectedItem == NewLateBinding.LateGet(sender, null, "Parent", new object[0], null, null, null))
  356. {
  357. ModMain.m_ClientRepository.ComboAccounts.SelectedIndex = 0;
  358. }
  359. ModMain.m_ClientRepository.ComboAccounts.Items.Remove(RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(sender, null, "Parent", new object[0], null, null, null)));
  360. return;
  361. }
  362. if (Operators.ConditionalCompareObjectEqual(left, ModLaunch.McLoginType.Legacy, false))
  363. {
  364. List<string> list = new List<string>();
  365. list.AddRange(ModBase.m_IdentifierRepository.Get("LoginLegacyName", null).ToString().Split("¨"));
  366. list.Remove(Conversions.ToString(NewLateBinding.LateGet(sender, null, "Tag", new object[0], null, null, null)));
  367. ModBase.m_IdentifierRepository.Set("LoginLegacyName", list.Join("¨"), false, null);
  368. ModMain.m_ProcIterator.ComboName.ItemsSource = list;
  369. ModMain.m_ProcIterator.ComboName.Text = (Enumerable.Any<string>(list) ? list[0] : "");
  370. return;
  371. }
  372. string stringFromEnum = ModBase.GetStringFromEnum((Enum)ModBase.m_IdentifierRepository.Get("LoginType", null));
  373. Dictionary<string, string> dictionary = new Dictionary<string, string>();
  374. List<string> list2 = new List<string>();
  375. List<string> list3 = new List<string>();
  376. if (Conversions.ToBoolean(Operators.NotObject(Operators.CompareObjectEqual(ModBase.m_IdentifierRepository.Get("Login" + stringFromEnum + "Email", null), "", false))))
  377. {
  378. list2.AddRange(ModBase.m_IdentifierRepository.Get("Login" + stringFromEnum + "Email", null).ToString().Split("¨"));
  379. }
  380. if (Conversions.ToBoolean(Operators.NotObject(Operators.CompareObjectEqual(ModBase.m_IdentifierRepository.Get("Login" + stringFromEnum + "Pass", null), "", false))))
  381. {
  382. list3.AddRange(ModBase.m_IdentifierRepository.Get("Login" + stringFromEnum + "Pass", null).ToString().Split("¨"));
  383. }
  384. checked
  385. {
  386. int num = list2.Count - 1;
  387. for (int i = 0; i <= num; i++)
  388. {
  389. dictionary.Add(list2[i], list3[i]);
  390. }
  391. dictionary.Remove(Conversions.ToString(NewLateBinding.LateGet(sender, null, "Tag", new object[0], null, null, null)));
  392. ModBase.m_IdentifierRepository.Set("Login" + stringFromEnum + "Email", dictionary.Keys.Join("¨"), false, null);
  393. ModBase.m_IdentifierRepository.Set("Login" + stringFromEnum + "Pass", dictionary.Values.Join("¨"), false, null);
  394. if (Operators.CompareString(stringFromEnum, "Nide", false) == 0)
  395. {
  396. ModMain.parserRepository.ComboName.ItemsSource = dictionary.Keys;
  397. ModMain.parserRepository.ComboName.Text = (Enumerable.Any<string>(dictionary.Keys) ? Enumerable.ElementAtOrDefault<string>(dictionary.Keys, 0) : "");
  398. ModMain.parserRepository.TextPass.Password = (Enumerable.Any<string>(dictionary.Values) ? Enumerable.ElementAtOrDefault<string>(dictionary.Values, 0) : "");
  399. return;
  400. }
  401. if (Operators.CompareString(stringFromEnum, "Auth", false) != 0)
  402. {
  403. return;
  404. }
  405. ModMain.fieldRepository.ComboName.ItemsSource = dictionary.Keys;
  406. ModMain.fieldRepository.ComboName.Text = (Enumerable.Any<string>(dictionary.Keys) ? Enumerable.ElementAtOrDefault<string>(dictionary.Keys, 0) : "");
  407. ModMain.fieldRepository.TextPass.Password = (Enumerable.Any<string>(dictionary.Values) ? Enumerable.ElementAtOrDefault<string>(dictionary.Values, 0) : "");
  408. }
  409. }
  410. // Token: 0x060014C0 RID: 5312 RVA: 0x0000BC43 File Offset: 0x00009E43
  411. private void TooltipLoaded(Border sender, EventArgs e)
  412. {
  413. Application.m_HelperComposer.Add(sender);
  414. }
  415. // Token: 0x060014C1 RID: 5313 RVA: 0x0000BC50 File Offset: 0x00009E50
  416. private void TooltipUnloaded(Border sender, RoutedEventArgs e)
  417. {
  418. Application.m_HelperComposer.Remove(sender);
  419. }
  420. // Token: 0x17000382 RID: 898
  421. // (get) Token: 0x060014C2 RID: 5314 RVA: 0x0000BC5E File Offset: 0x00009E5E
  422. internal AssemblyInfo Info
  423. {
  424. get
  425. {
  426. return new AssemblyInfo(Assembly.GetExecutingAssembly());
  427. }
  428. }
  429. // Token: 0x060014C4 RID: 5316 RVA: 0x0008BA74 File Offset: 0x00089C74
  430. [EditorBrowsable(EditorBrowsableState.Never)]
  431. [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  432. public void System_Windows_Markup_IStyleConnector_Connect(int connectionId, object target)
  433. {
  434. if (connectionId == 1)
  435. {
  436. ((Border)target).Loaded += delegate(object sender, RoutedEventArgs e)
  437. {
  438. this.TooltipLoaded((Border)sender, e);
  439. };
  440. ((Border)target).Unloaded += delegate(object sender, RoutedEventArgs e)
  441. {
  442. this.TooltipUnloaded((Border)sender, e);
  443. };
  444. }
  445. if (connectionId == 2)
  446. {
  447. ((Border)target).Loaded += delegate(object sender, RoutedEventArgs e)
  448. {
  449. this.TooltipLoaded((Border)sender, e);
  450. };
  451. ((Border)target).Unloaded += delegate(object sender, RoutedEventArgs e)
  452. {
  453. this.TooltipUnloaded((Border)sender, e);
  454. };
  455. }
  456. }
  457. // Token: 0x04000AA0 RID: 2720
  458. private bool m_RepositoryComposer;
  459. // Token: 0x04000AA1 RID: 2721
  460. private static Assembly _TestComposer;
  461. // Token: 0x04000AA2 RID: 2722
  462. private static Assembly mapComposer;
  463. // Token: 0x04000AA3 RID: 2723
  464. private static Assembly errorComposer;
  465. // Token: 0x04000AA4 RID: 2724
  466. private static Assembly _ContextComposer;
  467. // Token: 0x04000AA5 RID: 2725
  468. private static readonly object specificationComposer = RuntimeHelpers.GetObjectValue(new object());
  469. // Token: 0x04000AA6 RID: 2726
  470. private static readonly object m_MockComposer = RuntimeHelpers.GetObjectValue(new object());
  471. // Token: 0x04000AA7 RID: 2727
  472. private static readonly object _RequestComposer = RuntimeHelpers.GetObjectValue(new object());
  473. // Token: 0x04000AA8 RID: 2728
  474. private static readonly object dicComposer = RuntimeHelpers.GetObjectValue(new object());
  475. // Token: 0x04000AA9 RID: 2729
  476. public static List<Border> m_HelperComposer = new List<Border>();
  477. }
  478. }