public void SetConvertionPreference(string name, ManagedConvertion convertion) { if (store[name] == null) { throw new Exception("Unknow pseudo..."); } store[name].Preference = convertion; }
public String Convert(ManagedConvertion convertion) { switch (convertion) { case ManagedConvertion.BTC: return($"{this.BTCPrice} BTC"); case ManagedConvertion.EUR: return($"{this.EURPrice} €"); default: return($"{this.BTCPrice} $"); } }