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

            case ManagedConvertion.EUR:
                return($"{this.EURPrice} €");

            default:
                return($"{this.BTCPrice} $");
            }
        }