public refCurrency GetObjectByKey(KeyValuePair <string, string> keypair) { if (this.Contains(keypair) == false) { return(null); } refCurrency ob = this[keypair]; return((refCurrency)ob); }
public refCurrency GetObjectByKey(object keypair) { if (this.Contains(GetKey(keypair)) == false) { return(null); } refCurrency ob = this[GetKey(keypair)]; return((refCurrency)ob); }
public refCurrency GetObjectByKey(string k_CurCode) { if (this.Contains(GetKey(k_CurCode)) == false) { return(null); } refCurrency ob = this[GetKey(k_CurCode)]; return((refCurrency)ob); }
public bool ChangeItem(KeyValuePair <string, string> keypair, refCurrency item) { refCurrency orig = this.GetObjectByKey(keypair); if (orig != null) { int index = this.IndexOf(orig); this.SetItem(index, item); return(true); } return(false); }
public refCurrency GetObjectByKey(string k_CurCode, LV.Core.DAL.Base.IRepository repository) { if (this.Contains(GetKey(k_CurCode)) == false) { refCurrency ob = repository.GetQuery <refCurrency>().FirstOrDefault(o => o.CurCode == k_CurCode); if (ob != null) { this.Add(ob); } return(ob); } refCurrency obj = this[GetKey(k_CurCode)]; return((refCurrency)obj); }
protected override KeyValuePair <string, string> GetKeyForItem(refCurrency item) { return(item.Key); }
public bool DeleteObject(refCurrency item, LV.Core.DAL.Base.IRepository repository) { repository.Update(item); return(true); }
public bool AddObject(refCurrency item, LV.Core.DAL.Base.IRepository repository) { repository.Add(item); return(true); }