private void SetRepairs() { var tubeDiameter = new TubeDiameter(); var repairs = M3Client.repairs.result; repairsComboBox.Items.Clear(); if (repairs == null) { MessageBox.Show(i8n.strings["noRepairsAvailable"]); return; } foreach (var repair in repairs) { var description = strings["ogwp"] + " " + repair.ogpw + " " + strings["cjp"] + " " + repair.cjp + " " + strings["oilwellNumberAbbr"] + " " + repair.oilwellNumber + " ø" + tubeDiameter[repair.tubeDiameterId]; repairsComboBox.Items.Add(new ComboBoxItem() { id = repair.id, value = description }); } }
private void SetRepairs() { var tubeDiameter = new TubeDiameter(); foreach (var repair in repairs) { var description = strings["ogwp"] + " " + repair.ogpw + " " + strings["cjp"] + " " + repair.cjp + " " + strings["oilwellNumberAbbr"] + " " + repair.oilwellNumber + " ø" + tubeDiameter[repair.tubeDiameterId]; repairsComboBox.Items.Add(new ComboBoxItem() { id = repair.id, value = description }); } }