private void loadCurrencySettings() { CurrencyItemModel cim = new CurrencyItemModel(); dynamic items = cim.all(cim); foreach (var item in items) { currencySettings.Rows.Add(item.value, item.name, 0); } }
// Currency item settings private void loadTillSettings() { tillSettingsdataGrid.Rows.Clear(); CurrencyItemModel cim = new CurrencyItemModel(); dynamic items = cim.all(cim); foreach (dynamic item in items) { tillSettingsdataGrid.Rows.Add(item.id, item.name, item.value); } }