Advertisement
wingman007

SnakeOOP2b_Application

Oct 21st, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace SnakeOOP2b
  8. {
  9.     class Application
  10.     {
  11.         private Timer timer;
  12.         public void Bootstrap(object config = null)
  13.         {
  14.             this.timer = new Timer();
  15.             timer.Tick += (object sender, EventArgs e) => Console.WriteLine("I am ticking");
  16.         }
  17.  
  18.         public void Start()
  19.         {
  20.             timer.Start();
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement