using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Deckungsbeitrag.AA_Forms { public partial class FormGeschaeftKndAuswahl : Form { public string kundetyp = "Bestandskunde"; public FormGeschaeftKndAuswahl() { InitializeComponent(); } private void RadioButtons_CheckedChanged(object sender, EventArgs e) { RadioButton rb = (RadioButton)sender; rb.ForeColor = rb.Checked ? Program.Wirlblau : Color.White; // RadioButtons für Kundenauswahl. if (rb.AccessibleName.Contains("kunde")) { kundetyp = rb.AccessibleName; this.DialogResult = DialogResult.OK; this.Close(); } } } }