Ejemplo n.º 1
0
 private void AddCredits(uint nCredits)
 {
     try
     {
         m_machine.AddCredits(nCredits);
     }
     catch (Exception ex)
     {
         m_informationPresenter.ShowError("Wystąpił niedpodziewany błąd, spróbuj ponownie.", ex);
     }
     finally
     {
         //Kredyty aktyalizujemy zawsze, bo może był błąd, i coś  się nie dodało
         Credits = m_machine.Credits;
     }
 }