Exemple #1
0
        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);
        }
Exemple #2
0
        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();
        }