Exemplo n.º 1
0
 /// <summary>
 /// Sets values of window elements to values set in config.
 /// </summary>
 private void LoadConfig()
 {
     try { Icon = new Icon("LauncherIcon.ico"); } catch { }
     Text                      = c.SubElText("MainWindow", "WindowName");
     panelOutput.Text          = c.SubElText("MainWindow", "OutputBox");
     panelOptional.Text        = c.SubElText("MainWindow", "OptionalBox");
     checkUpdatesButt.Text     = c.SubElText("MainWindow", "CheckForUpdatesButton");
     updateButt.Text           = c.SubElText("MainWindow", "UpdateButton");
     webButt.Text              = c.SubElText("MainWindow", "WebpageButton");
     regButt.Text              = c.SubElText("MainWindow", "RegistrationButton");
     launcherInfoButt.Text     = c.SubElText("MainWindow", "LauncherInstructionsButton");
     delBackButt.Text          = c.SubElText("MainWindow", "DeleteBackupsButton");
     changelogEditButt.Text    = c.SubElText("MainWindow", "ChangelogEditorButton");
     changelogBrowserButt.Text = c.SubElText("MainWindow", "ChangelogBrowserButton");
     launchButt.Text           = c.SubElText("MainWindow", "LaunchButton");
     panelTotalSize.Text       = c.SubElText("MainWindow", "PanelTotalSize");
     try { newsPictureBox.LoadAsync(c.SubElText("Paths", "HelloImage")); }
     catch { o.Output(c.SubElText("Messages", "HelloImageNotLoaded")); }
     progressLabel.Text  = "";
     speedLabel.Text     = "";
     percentLabel.Text   = "";
     totalSizeLabel.Text = "";
 }