protected void SignUpButton_Click(object sender, EventArgs e) { if (PrivateRadio.Checked == true) { mycarshop.AddCustomerToList(new PrivateCustomer(NameBox.Text, Convert.ToInt32(PhoneNumberBox.Text), "Private")); } else if (BusinessRadio.Checked == true) { mycarshop.AddCustomerToList(new BusinessCustomer(NameBox.Text, Convert.ToInt32(PhoneNumberBox.Text), "Business")); } }