Ejemplo n.º 1
0
        static void Main()
        {
            Tomp2Tracker tt = new Tomp2Tracker();

            tt.TrackingChanged += Tt_TrackingChanged;
            Console.Read();
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            _listView.ItemsSource = new LevelViewList();
            _listView.DataContext = DataContext = Settings.Instance;

            Settings.Instance.PropertyChanged += Settings_PropertyChanged;
            // Must remain in constructor
            InitialiseLayout();

            _timer          = new DispatcherTimer();
            _timer.Tick    += Timer_Tick;
            _timer.Interval = new TimeSpan(0, 0, 0, 0, 10);
            _stopwatch      = new Stopwatch();

            _tracker = new Tomp2Tracker();
            _tracker.TrackingChanged += Tracker_TrackingChanged;

            _autoUpdateMessageShown = _gameInProgress = false;
            UpdateChecker.Instance.UpdateAvailable += UpdateChecker_UpdateAvailable;

            Application.Current.Exit += Application_Exit;
        }