public frmSplash() { this.Load += new EventHandler(this.frmSplash_Load); this.InitializeComponent(); ThemeResolutionService.LoadPackageResource("BuilderRED.CustomTelerikAll.tssp"); ThemeResolutionService.ApplicationThemeName = "CustomTelerikAll"; }
public Form1() { InitializeComponent(); this.radDock1.DockingGuidesTemplate = PredefinedDockingGuidesTemplate.VS2008; ThemeResolutionService.LoadPackageResource("Telerik.Examples.WinControls.Docking.VisualStudioIDE.VisualStudio2008.tssp"); this.radDock1.ThemeName = "VisualStudio2008"; }
private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(defaultValue: false); ThemeResolutionService.LoadPackageResource("BannerChurch.CheckInApp.App_Themes.Office2010Silver_Compass.tssp"); ThemeResolutionService.ApplicationThemeName = "Office2010Silver_Compass"; LoginForm = new Login(); Application.Run(LoginForm); }
public RadEvaluationForm() { this.InitializeComponent(); ThemeResolutionService.LoadPackageResource("Telerik.WinControls.UI.EvalFormTheme.tssp"); ThemeResolutionService.ApplyThemeToControlTree((Control)this, "EvalFormTheme"); this.radLabelVersion.Text = string.Format("Version {0}", (object)"2018.3.1016.20"); this.radLabelCopyright.Text = this.SplitCopyrightText("Copyright © 2006-2018 Telerik EAD. All rights reserved."); this.FormElement.TitleBar.Children[1].Visibility = ElementVisibility.Collapsed; this.Icon = Telerik.WinControls.ResFinder.ProgressIcon; this.pictureBoxRadControls.Image = Telerik.WinControls.ResFinder.WinFormsLogoWithText; }
/// <summary> /// Initializes the STF UI theme. /// This method should be called in the static constructor of the main form of the calling assembly. /// </summary> public static void Initialize() { #if SDK RadTypeResolver.Instance.TypeResolverAssemblyName = "STF.Framework"; #endif string themeName = "ScalableTestFramework"; string resourcePath = $"HP.ScalableTest.Framework.Properties.{themeName}.tssp"; ThemeResolutionService.LoadPackageResource(resourcePath); ThemeResolutionService.ApplicationThemeName = themeName; }
/// <summary> /// Sets the theme. /// </summary> public static void SetTheme() { var themeName = "ScalableTestFramework"; var resourcePath = "HP.ScalableTest.LabConsole.Themes.{0}.tssp".FormatWith(themeName); try { ThemeResolutionService.LoadPackageResource(resourcePath); ThemeResolutionService.ApplicationThemeName = themeName; } catch (Exception ex) { TraceFactory.Logger.Error("Unable to set theme {0} from {1}".FormatWith(themeName, resourcePath), ex); } }
private void rbtnClrSilver_Click(object sender, EventArgs e) { //if (System.IO.File.Exists(Common.AppPath() + @"\Office2007Silver.tssp")) //{ // ThemeResolutionService.LoadPackageFile(Common.AppPath() + @"\Office2007Silver.tssp"); //} //ThemeResolutionService.ApplyThemeToControlTree(this, "Office2007Silver"); ThemeResolutionService.LoadPackageResource("RecoEngine.Themes.Office2007Silver.tssp"); ThemeResolutionService.ApplicationThemeName = "Office2007Silver"; strStandardColor = "Silver"; //rbtnClrBlue.ToggleState = Telerik.WinControls.Enumerations.ToggleState.Off; //rbtnClrBlack.ToggleState = Telerik.WinControls.Enumerations.ToggleState.Off; //ColorSilverForSomeControls(); }
private void rbtnClrBlack_Click(object sender, EventArgs e) { ThemeResolutionService.LoadPackageResource("RecoEngine.Themes.Office2007Black.tssp"); //if (System.IO.File.Exists(Common.AppPath() + @"\Office2007Black.tssp")) //{ // ThemeResolutionService.LoadPackageResource("RecoEngine.Themes.Office2007Black.tssp"); // ThemeResolutionService.LoadPackageFile(Common.AppPath() + @"\Office2007Black.tssp"); //} //ThemeResolutionService.ApplyThemeToControlTree(this, "Office2007Black"); //ThemeResolutionService.ApplicationThemeName = "Office2007Black"; CntrlReports cntrlre = (CntrlReports)Common.TopMostParent(this); // cntrlre.Controls. strStandardColor = "Black"; //rbtnClrBlue.ToggleState = Telerik.WinControls.Enumerations.ToggleState.Off; //rbtnClrSilver.ToggleState = Telerik.WinControls.Enumerations.ToggleState.Off; //ColorBlackForSomeControls(); }
private static void Main(string[] args) { try { Class7.smethod_2(); ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; } catch { } if (string.IsNullOrEmpty(Settings.Default.AppId)) { Settings.Default.AppId = Guid.NewGuid().ToString(); Settings.Default.Save(); } GClass88.smethod_13(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\USB_HELPER\\"); Class108.smethod_1(); AppDomain.CurrentDomain.UnhandledException += (UnhandledExceptionEventHandler)((sender, e) => { Class108.smethod_1(); Exception exceptionObject = e.ExceptionObject as Exception; string str1 = "NONE"; try { str1 = new ComputerInfo().OSFullName; } catch { } try { if (exceptionObject != null) { string str2 = "NONE"; if (GClass28.gclass30_0 != null) { str2 = GClass28.gclass30_0.TitleId.IdRaw + "v" + GClass28.gclass30_0.Version ?? "0"; } Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("en-US"); string str3 = Class102.string_0 ?? ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(); GClass6.smethod_19(string.Format("{0}/postBug.php", (object)Class67.String_4), new NameValueCollection() { { "bug_target_site", exceptionObject.ToString() }, { "bug_message", exceptionObject.Message }, { "bug_stacktrace", exceptionObject.StackTrace }, { "app_version", str3 ?? "" }, { "os_revision", str1 }, { "data_path", Settings.Default.Path }, { "extraction_path", Settings.Default.ExtractFolder ?? "" }, { "last_unpacking_title", str2 } }); if (exceptionObject.Message.Contains("Nullable object must have a value.")) { if (Class112.bool_1) { return; } Class112.bool_1 = true; System.Windows.Forms.Application.Restart(); return; } } } catch { } if (exceptionObject is UnauthorizedAccessException) { int num1 = (int)new frmException().ShowDialog(); } else if (exceptionObject is FileNotFoundException && exceptionObject.Message.Contains("Telerik")) { int num2 = (int)new frmDownloadDotNet().ShowDialog(); } else { int num3 = (int)new frmUnhandledException(exceptionObject).ShowDialog(); } GClass9.smethod_0(); System.Windows.Forms.Application.Exit(); }); if (args.Length == 1) { Class102.string_0 = args[0]; } if (!ApplicationDeployment.IsNetworkDeployed && Class102.string_0 == null) { int num = (int)RadMessageBox.Show("You cannot execute this application directly. Please use the default shortcut on your desktop or execute Updater.exe"); System.Windows.Forms.Application.Exit(); } else { foreach (string resourcePath in ((IEnumerable <string>)Assembly.GetExecutingAssembly().GetManifestResourceNames()).Where <string>((Func <string, bool>)(string_0 => Path.GetExtension(string_0) == ".tssp"))) { ThemeResolutionService.LoadPackageResource(resourcePath); } System.Windows.Forms.Application.EnableVisualStyles(); if (Settings.Default.ThemeName == "VisualStudio2012Dark") { Settings.Default.ThemeName = "DarkBlue"; } if (Settings.Default.ThemeName == "VisualStudio2012Light") { Settings.Default.ThemeName = "Light"; } Settings.Default.Save(); ThemeResolutionService.ApplicationThemeName = Settings.Default.ThemeName; if (Settings.Default.LaunchCount == 0 && !Class112.smethod_0()) { int num = (int)new frmSupportOver().ShowDialog(); System.Windows.Forms.Application.Exit(); Environment.Exit(0); } else { if (Settings.Default.Region == "NONE") { Class112.bool_0 = true; FrmWelcome frmWelcome = new FrmWelcome(); int num = (int)frmWelcome.ShowDialog(); if (frmWelcome.bool_0) { Class108.smethod_1(); System.Windows.Forms.Application.Exit(); return; } } using (Mutex mutex = new Mutex(true, "Global\\WIIU_USB_HELPER")) { try { if (!mutex.WaitOne(0, true)) { int num = (int)RadMessageBox.Show("An instance of WiiU USB Helper is already running."); return; } } catch (AbandonedMutexException ex) { } SystemEvents.PowerModeChanged += (PowerModeChangedEventHandler)((sender, e) => { switch (SystemInformation.PowerStatus.BatteryChargeStatus) { case BatteryChargeStatus.Charging: Class108.smethod_0(); break; case BatteryChargeStatus.NoSystemBattery: Class108.smethod_0(); break; default: Class108.smethod_1(); break; } }); Class108.smethod_0(); Class91.smethod_0(); System.Windows.Forms.Application.Run((Form) new NusGrabberForm()); Class91.smethod_1(); Class108.smethod_1(); } } } }
private static void cf4ec72ecc2382dbb738547df5b95051e(string[] cccf482ee689904a1a8630dac14e0a6a0) { c641344460c4912d7feb758c824455611.c384b68a3ce05d01196ef82b6e76bbcf2(); Settings.set_ReleaseMode(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7996) != 0); Settings.set_UIMode((UIMode)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(8000)); Settings.AddDestinationFromConnectionString(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7587)); AppDomain.CurrentDomain.UnhandledException += Handler.get_UnhandledException(); if ((int)cdaee2d37f7effe0581f827ac9195da99.c572aba370be49804cbdb0b35312bea94(cccf482ee689904a1a8630dac14e0a6a0) == cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(8004)) { label_1: switch (5) { case 0: goto label_1; default: if (1 == 0) { // ISSUE: method reference RuntimeMethodHandle runtimeMethodHandle = __methodref(c480fcda80c1413c0c8bce00847120e11.cf4ec72ecc2382dbb738547df5b95051e); } c2d4baf2bd055f4368cf2297e4ff33900.c907ca8ffa30661318a7e29e77519ea57 = cccf482ee689904a1a8630dac14e0a6a0[cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(8008)]; break; } } if (!ApplicationDeployment.IsNetworkDeployed) { label_6: switch (7) { case 0: goto label_6; default: if (c2d4baf2bd055f4368cf2297e4ff33900.c907ca8ffa30661318a7e29e77519ea57 == null) { label_8: switch (1) { case 0: goto label_8; default: int num = (int)RadMessageBox.Show(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(8013)); System.Windows.Forms.Application.Exit(); return; } } else { break; } } } string[] manifestResourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames(); // ISSUE: reference to a compiler-generated field Func <string, bool> predicate = c480fcda80c1413c0c8bce00847120e11.\u003C\u003Ec.cf2acbfc0f255ba43c475c7d28711caf1; if (predicate == null) { label_11: switch (2) { case 0: goto label_11; default: // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated method predicate = c480fcda80c1413c0c8bce00847120e11.\u003C\u003Ec.cf2acbfc0f255ba43c475c7d28711caf1 = new Func <string, bool>(c480fcda80c1413c0c8bce00847120e11.\u003C\u003Ec.c77621037b5e8518f08b9304f2b861f38.c797cf6dfee08775708a9f28fa7f75cae); break; } } IEnumerator <string> enumerator = ((IEnumerable <string>)manifestResourceNames).Where <string>(predicate).GetEnumerator(); try { while (enumerator.MoveNext()) { ThemeResolutionService.LoadPackageResource(enumerator.Current); } label_17: switch (5) { case 0: goto label_17; } } finally { if (enumerator != null) { label_19: switch (7) { case 0: goto label_19; default: enumerator.Dispose(); break; } } } System.Windows.Forms.Application.EnableVisualStyles(); if (cb388f9b4f7541407d5276f457649446d.c1df95097ffa57d753c5fe1353cf65e86(Settings.Default.ThemeName, c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7321))) { label_23: switch (4) { case 0: goto label_23; default: Settings.Default.ThemeName = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(8249); break; } } if (cb388f9b4f7541407d5276f457649446d.c1df95097ffa57d753c5fe1353cf65e86(Settings.Default.ThemeName, c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(8266))) { label_26: switch (3) { case 0: goto label_26; default: Settings.Default.ThemeName = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(8309); break; } } Settings.Default.Save(); ThemeResolutionService.set_ApplicationThemeName(Settings.Default.ThemeName); RemoteCertificateValidationCallback validationCallback1 = ServicePointManager.ServerCertificateValidationCallback; // ISSUE: reference to a compiler-generated field RemoteCertificateValidationCallback validationCallback2 = c480fcda80c1413c0c8bce00847120e11.\u003C\u003Ec.c6048d9e2c14b5dbee7326758737ce668; if (validationCallback2 == null) { label_29: switch (5) { case 0: goto label_29; default: // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated method validationCallback2 = c480fcda80c1413c0c8bce00847120e11.\u003C\u003Ec.c6048d9e2c14b5dbee7326758737ce668 = new RemoteCertificateValidationCallback(c480fcda80c1413c0c8bce00847120e11.\u003C\u003Ec.c77621037b5e8518f08b9304f2b861f38.c30f98e0e5ad9a87c97719e146f54d618); break; } } ServicePointManager.ServerCertificateValidationCallback = ccc8319fb70be18e117edb5a68f6d77a8.cc8e287d5350b43026d33bb80beb131a0((object)Delegate.Combine((Delegate)validationCallback1, (Delegate)validationCallback2)); if (cb388f9b4f7541407d5276f457649446d.c1df95097ffa57d753c5fe1353cf65e86(Settings.Default.Region, c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(8320))) { label_32: switch (3) { case 0: goto label_32; default: int num = (int)((Form) new cf9c4a065a8a6c1226fbf48aa58d35c4c()).ShowDialog(); break; } } Mutex mutex = new Mutex(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(8012) != 0, c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(8329)); try { try { if (!mutex.WaitOne(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(8016), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(8020) != 0)) { label_36: switch (7) { case 0: goto label_36; default: int num = (int)RadMessageBox.Show(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(8374)); return; } } } catch (AbandonedMutexException ex) { } System.Windows.Forms.Application.Run((Form) new c1b7cf6218f1f498aba267c6450ec9233()); } finally { if (mutex != null) { label_41: switch (5) { case 0: goto label_41; default: mutex.Dispose(); break; } } } }
private static void ce0be635e443d424596522127e6756824(string[] c3c9260886a6db15de49329a9f5b9836c) { cd16a919e13d3f63e4ae6d8f0fb0e6017.ca7ac84818622788abf514a30d9edc7bc(); c67726bc94fb4dd43c5c00e863a4fed19.c92d03d65be2d0258da80fddaecea1a40(c72c3e9a0cc00ee2de6a9f6d658d0ca09.c8d9bd1b5f903cbc3ebfaf48b8b440c7a(Environment.GetFolderPath((Environment.SpecialFolder)cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(10296)), ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(44554))); c4a33c9ca97b5b0cfc40918375bc969d1.c1d1bf7fd10328c2b4e43179136ec587b.Start(); AppDomain currentDomain = AppDomain.CurrentDomain; UnhandledExceptionEventHandler value; if ((value = c4a33c9ca97b5b0cfc40918375bc969d1.< > c.c5e57be654d50df4c034b8f0b917ceb75) == null) { for (;;) { switch (5) { case 0: continue; } break; } if (!true) { RuntimeMethodHandle runtimeMethodHandle = methodof(c4a33c9ca97b5b0cfc40918375bc969d1.ce0be635e443d424596522127e6756824(string[])).MethodHandle; } value = (c4a33c9ca97b5b0cfc40918375bc969d1.< > c.c5e57be654d50df4c034b8f0b917ceb75 = new UnhandledExceptionEventHandler(c4a33c9ca97b5b0cfc40918375bc969d1.< > c.cdfab1996eb8651828de2a4469aa3481e.c20b3e5c3da456487c582579fb13956f8)); } currentDomain.UnhandledException += value; if ((int)c35e85ecdf822c0628c4ba6d3d6570767.cfeb04651f165d0166e7c10ab1acf8b28(c3c9260886a6db15de49329a9f5b9836c) == cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(10300)) { for (;;) { switch (6) { case 0: continue; } break; } c34ce0b034187983362ba58cc8c72233a.c0b9a995f9c2313cad22315173d49b769 = c3c9260886a6db15de49329a9f5b9836c[cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(10304)]; } if (!ApplicationDeployment.IsNetworkDeployed) { for (;;) { switch (2) { case 0: continue; } break; } if (c34ce0b034187983362ba58cc8c72233a.c0b9a995f9c2313cad22315173d49b769 == null) { for (;;) { switch (6) { case 0: continue; } break; } RadMessageBox.Show(ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(44579)); Application.Exit(); return; } } IEnumerable <string> manifestResourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames(); Func <string, bool> predicate; if ((predicate = c4a33c9ca97b5b0cfc40918375bc969d1.< > c.ca6b3bce60a6464e6f649e5051bf8c5d0) == null) { for (;;) { switch (5) { case 0: continue; } break; } predicate = (c4a33c9ca97b5b0cfc40918375bc969d1.< > c.ca6b3bce60a6464e6f649e5051bf8c5d0 = new Func <string, bool>(c4a33c9ca97b5b0cfc40918375bc969d1.< > c.cdfab1996eb8651828de2a4469aa3481e.c9538a363c214751d80393935a16cc40d)); } IEnumerator <string> enumerator = manifestResourceNames.Where(predicate).GetEnumerator(); try { while (enumerator.MoveNext()) { string text = enumerator.Current; ThemeResolutionService.LoadPackageResource(text); } for (;;) { switch (3) { case 0: continue; } break; } } finally { if (enumerator != null) { for (;;) { switch (3) { case 0: continue; } break; } enumerator.Dispose(); } } Application.EnableVisualStyles(); if (c65c252d08c00d64b46298b4434860139.c8d9bd1b5f903cbc3ebfaf48b8b440c7a(Settings.Default.ThemeName, ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(43564))) { for (;;) { switch (2) { case 0: continue; } break; } Settings.Default.ThemeName = ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(44813); } if (c65c252d08c00d64b46298b4434860139.c8d9bd1b5f903cbc3ebfaf48b8b440c7a(Settings.Default.ThemeName, ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(44830))) { for (;;) { switch (7) { case 0: continue; } break; } Settings.Default.ThemeName = ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(44873); } Settings.Default.Save(); ThemeResolutionService.ApplicationThemeName = Settings.Default.ThemeName; if (c65c252d08c00d64b46298b4434860139.c8d9bd1b5f903cbc3ebfaf48b8b440c7a(Settings.Default.Region, ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(44884))) { for (;;) { switch (7) { case 0: continue; } break; } c4a33c9ca97b5b0cfc40918375bc969d1.ce7a67aa39a960de2776e66c7972f14b2 = (cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(10308) != 0); cd12741190acbe9c40d9e4da0a5a8e496 cd12741190acbe9c40d9e4da0a5a8e = new cd12741190acbe9c40d9e4da0a5a8e496(); cd12741190acbe9c40d9e4da0a5a8e.ShowDialog(); if (cd12741190acbe9c40d9e4da0a5a8e.cd2877d0bf929a7d7adb972e5b527870b) { for (;;) { switch (3) { case 0: continue; } break; } Application.Exit(); return; } } Mutex mutex = new Mutex(cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(10312) != 0, ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(44893)); try { try { if (!mutex.WaitOne(cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(10316), cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(10320) != 0)) { for (;;) { switch (3) { case 0: continue; } break; } RadMessageBox.Show(ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(44938)); return; } } catch (AbandonedMutexException) { } Application.Run(new cb6cc9a5b122137bc5f2718f61ab49e59()); } finally { if (mutex != null) { for (;;) { switch (7) { case 0: continue; } break; } ((IDisposable)mutex).Dispose(); } } }
static Form1() { ThemeResolutionService.LoadPackageResource("Telerik.Examples.WinControls.PageView.StripView.CheckButtons.StripViewCheckButtons.tssp"); }