Guest User

Untitled

a guest
Feb 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public class SomeClass
  2. {
  3. Timer timer;
  4. public SomeClass()
  5. {
  6. timer = new Timer(100);
  7. timer.Tick += SomeMethod
  8. timer.Start();
  9. }
  10. public void SomeMethod(object sender, EventArgs eventArgs)
  11. {
  12. //bla-bla
  13. //Здесь вызвать!!!
  14. }
  15. }
  16.  
  17. public class AnotherClass
  18. {
  19. SomeClass someField;
  20. public AnotherClass()
  21. {
  22. someField = new SomeClass();
  23. }
  24.  
  25. public int AnotherMethod()
  26. {
  27. //bla-bla
  28. return 1;
  29. }
  30. }
Add Comment
Please, Sign In to add comment