Guest User

Untitled

a guest
Jul 15th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.46 KB | None | 0 0
  1. 'Declaraction du timer
  2. Private _isEaten As Boolean
  3. Public ReadOnly Property IsEated() As Boolean
  4.     Get
  5.         Return _isEaten
  6.     End Get
  7. End Property
  8.  
  9. 'Sub new
  10.  
  11. _stop = New Timer
  12. _stop.Interval = 3000
  13. _isStoped = False    
  14.  
  15. 'sub manger
  16. Public Sub isGettingStoped()
  17.     _stop.Start()
  18.     _isStoped = True
  19. End Sub
  20.  
  21. 'tick
  22. Private Sub stopTick(ByVal sender As Object, ByVal e As System.EventArgs)
  23.     _isStoped = False
  24.     _stop.Stop()
  25. End Sub
Add Comment
Please, Sign In to add comment