private void cmbCaptureMethod_SelectedIndexChanged(object sender, EventArgs e) { ComboBox senderComboBox = (ComboBox)sender; if (senderComboBox.SelectedIndex > 0) { if (this.Institution_number == "00000004" && this.Card_type == "Visa Card") { string capturemethodtoeci = cmbCaptureMethod.SelectedValue.ToString(); switch (capturemethodtoeci) { case "030": this.eciindicator = 1; break; case "045": this.eciindicator = 2; break; case "050": this.eciindicator = 5; break; case "051": this.eciindicator = 6; break; case "053": this.eciindicator = 8; break; case "054": this.eciindicator = 7; break; case "121": this.eciindicator = 0; break; default: break; } cmbEciIndicator.Text = this.eciindicator.ToString(); } } }
capturemethodtoeci
switch
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)