private void hexadecimaal(CultureInfo clone) { if (txtInput.Text != "") { decimal ingave = decimal.Parse(txtInput.Text, clone); if (cmbSelection.SelectedValue.ToString() == "Decimaal") { convertFromDecimal newDecimal = new convertFromDecimal(); lblHexadecimaal.Content = newDecimal.hexNummer(ingave); } if (cmbSelection.SelectedValue.ToString() == "Binair" && Regex.IsMatch(ingave.ToString(), @"[0-1]") && !Regex.IsMatch(ingave.ToString(), @"[2-9]")) { convertFromBinary newBinary = new convertFromBinary(); lblHexadecimaal.Content = newBinary.hexadecimal(ingave); } } }