using Deckungsbeitrag.Properties; using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Drawing; using System.Drawing.Printing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Deckungsbeitrag { public partial class FormEinstellung : Form { string varkosten = ConfigurationManager.AppSettings["Variabel"]; string fixlohnkosten = ConfigurationManager.AppSettings["FixLohn"]; string fixmietkosten = ConfigurationManager.AppSettings["FixMiete"]; public bool changed = false; public bool validating = true; public FormEinstellung() { InitializeComponent(); } public FormEinstellung(string v) : this() { if (v == "Sortiment") { ButtonPfad_Click(buttonSortiment, null); this.textBoxSortiment.BackColor = Color.Red; } } private void FormEinstellung_Load(object sender, EventArgs e) { Load_Settings(); } private void Load_Settings() { this.checkBoxMaxWert.Checked = Settings.Default.MaxChecked; this.checkBoxMinWert.Checked = Settings.Default.MinChecked; this.numUpDownAnzahl.Value = Settings.Default.ZAnzahl; if (checkBoxMaxWert.Checked) { this.numUpDownMaxWert.Value = (int)Settings.Default.RatMax; this.numUpDownMaxWert.Enabled = true; } if (checkBoxMinWert.Checked) { this.numUpDownMinWert.Value = (int)Settings.Default.RatMin; this.numUpDownMinWert.Enabled = true; } this.textBoxSortiment.Text = ConfigurationManager.AppSettings["SortimentPfad"]; this.textBoxRatingbild.Text = ConfigurationManager.AppSettings["BildPfad"]; foreach (Button btn in this.groupBoxFarben.Controls.OfType