private void OnDownloadLauncherCompleted(object sender, DownloadStringCompletedEventArgs e) { if (e.Error != null) { return; } XDocument document = XDocument.Parse(e.Result, LoadOptions.None); Launcher launcher = new LauncherReader().Read(document); UpdateServerList(launcher); }
private static void OnDownloadLauncherCompleted(object sender, DownloadStringCompletedEventArgs e) { if (e.Error != null) { Application.Exit(); return; } XDocument document = XDocument.Parse(e.Result, LoadOptions.None); Startup.CheckForNewVersion(document); Launcher launcher = new LauncherReader().Read(document); new Mainform(launcher.Style).ShowDialog(); Application.Exit(); }