private void Fill() { CurrenciesLogic currencies = new CurrenciesLogic(manager); DataGV.AutoGenerateColumns = false; DataGV.DataSource = currencies.GetAll(); DataGV.Update(); }
private void FillCurrencies() { CurrenciesLogic currencies = new CurrenciesLogic(manager); CurrencyLUE.Properties.DataSource = currencies.GetAll(); CurrencyLUE.Properties.ValueMember = "ID"; CurrencyLUE.Properties.DisplayMember = "Name"; CurrencyLUE.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", 0, "Назва валюти")); CurrencyLUE.EditValue = currencies.GetDefault().ID; }
/// <summary> /// Заповнення валют /// </summary> private void FillCurrencies() { CurrenciesLogic currencies = new CurrenciesLogic(manager); CurrencyLUE.Properties.DataSource = currencies.GetAll(); CurrencyLUE.Properties.ValueMember = "ID"; CurrencyLUE.Properties.DisplayMember = "Name"; CurrencyLUE.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", 0, "Назва валюти")); CurrencyLUE.EditValue = currencies.GetDefault().ID; }