private void displaySurcharge(CommonTools.Surcharge item) { descSurcharge.Text = item.info; usageSurcharge.Text = CommonTools.Item.getString(ref usageSurcharge, item.usage); statusSurcharge.Text = item.status; rateSurcharge.Text = item.rate.ToString(); }
private void displaySurcharge(CommonTools.Surcharge item) { descSurcharge.Text = item.info; usageSurcharge.Text = CommonTools.Item.getString(ref usageSurcharge, item.usage); statusSurcharge.Text = item.status; rateSurcharge.Text = item.rate.ToString(); chargeSurcharge.Text = item.charge.ToString(); /* CommonTools.Surcharge display = null; foreach (CommonTools.Surcharge surcharge in surcharges) { if (surcharge.info == description && (status == "" || surcharge.status == status)) { display = surcharge; break; } } if (display == null) { rateSurcharge.Text = "0.0000"; usageSurcharge.Text = ""; return; } descSurcharge.Text = display.info; statusSurcharge.Text = display.status.ToString(); foreach (CommonTools.Item item in usageSurcharge.Items) { if (item.Value == display.usage) { usageSurcharge.SelectedItem = item; usageSurcharge.Text = item.Text; break; } } rateSurcharge.Text = display.rate.ToString();*/ }