private void Landing_Load(object sender, EventArgs e) { // Create a new configuration for NLog LoggingConfiguration NewConfig = new LoggingConfiguration(); // Add new rules for logging into specific places NewConfig.AddRule(LogLevel.Debug, LogLevel.Fatal, new TextBoxTarget() { Layout = "[${date}] [${level}] ${message}" }); NewConfig.AddRule(LogLevel.Info, LogLevel.Fatal, new BottomStripTarget() { Layout = "${message}" }); // Set the already created configuration LogManager.Configuration = NewConfig; // Update the list of builds, folders and resources BuildManager.Refresh(); DataFolderManager.Refresh(); ResourceManager.Refresh(); // And filll the Builds and Data folders BuildsListBox.Fill(BuildManager.Builds, true); DataBox.Fill(DataFolderManager.Folders, true); InstallerListBox.Fill(ResourceManager.Resources); // Set the elements to unlocked Locked = false; // Load the RTF text AboutRichTextBox.Rtf = Resources.About; // Tell the Web Clients to use TLS 1.2 instead of SSL3 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; }
private void RefreshInstallerButton_Click(object sender, EventArgs e) { // Disable the install button InstallButton.Enabled = false; // And add the updated set of resource ResourceManager.Refresh(); InstallerListBox.Fill(ResourceManager.Resources); }