Example #1
0
        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;
        }
Example #2
0
 private void BuildRefreshButton_Click(object sender, EventArgs e)
 {
     // Refresh the list of builds
     BuildManager.Refresh();
     BuildsListBox.Fill(BuildManager.Builds, true);
 }