Example #1
0
 public AutomatedTellerMachine ToModel(CoinifyWebContext context)
 {
     return(new AutomatedTellerMachine()
     {
         AutomatedTellerMachineId = AutomatedTellerMachineId,
         Alias = Alias,
         CurrencyDictionary = new CurrencyDictionary()
         {
             CoinDictionary = CoinDictionary.ToDictionary(k => context.Coin.Find(k.Key), v => v.Value),
             NoteDictionary = NoteDictionary.ToDictionary(k => context.Note.Find(k.Key), v => v.Value),
         },
         HasNoteDispenser = HasNoteDispenser,
         CoinDispensersDictionary = CoinDispensersDictionary
                                    .ToDictionary(k => context.CoinSize.Find(k.Key), v => v.Value)
     });
 }
Example #2
0
 public CoinList()
 {
     InitializeComponent();
     currencies = CoinDictionary.Instance;
     //	CheckDatabasePopulated();
 }