/* Main Constructor */
        public FormMain()
        {
            InitializeComponent();

            // Reads the settings file
            XMLSettings.ReadAll();
            testControlsVisible();
            //_InitializeSettings();
            pictureBoxSatisfactoryIcon.BringToFront();
            pictureBoxSatisfactoryIcon.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBoxSatisfactoryIcon.Image    = Image.FromFile("../../Images/Satisfactory-original.png");

            // Binds the data sources to their perspective datagridviews
            //dgvMachines.DataSource = bindingSource_Machines;
            //dgvUsage.DataSource = bindingSource_Recipes;

            // For each machine in XMLSettings.AllMachines Add the Machine to the drop down box
            XMLSettings.AllMachines.ForEach(m => comboBoxMachine.Items.Add(m.Name));
            if (comboBoxMachine.Items.Count > 0)
            {
                comboBoxMachine.SelectedIndex = 0;
            }

            // loops through available materials and adds them to totals list
            XMLSettings.AllMaterials.ForEach(m => _AddedMachineTotals.Add(new TotalInOut(m)));
            _AddedMachineTotals_RefreshAll();
        }
 private void ButtonReadTest_Click(object sender, EventArgs e)
 {
     XMLSettings.ReadAll("Test");
 }
 private void ButtonReadConf_Click(object sender, EventArgs e)
 {
     XMLSettings.ReadAll();
 }