Esempio n. 1
0
 internal bool TryLayDownDisc(Disc_ViewModel discVm)
 {
     try
     {
         _tower.LayDiscOnTop(discVm.Disc);
         // if no exception occurred in the model, everything is ok and the disk can be added on top in the view
         Discs.Insert(0, discVm);
         return(true);
     }
     catch { }
     return(false);
 }
Esempio n. 2
0
 private void Tower_DiscTaken(object sender, DiscMovedEventArgs e)
 {
     SetAllowTakeDisc(false);
     takenDisc = e.Disc;
 }