Esempio n. 1
0
        public MainWindow()
        {
            var       main = new MainRoutine(null);
            TreeDebug td   = new TreeDebug();

            td.AnalyzeComposite(main.Root, null);
            td.ShowDialog();
            InitializeComponent();
            Instance     = this;
            keyboardHook = new KeyboardHook();
            keyboardHook.RegisterHotKey(0, Keys.F1);
            keyboardHook.KeyPressed += KeyboardHook_KeyPressed;
            IsPaused = false;
            var myTimer = new Timer();

            myTimer.Elapsed += DisplayTimeEvent;
            myTimer.Interval = 1000; // 1000 ms is one second
            myTimer.Start();
            ControlInput.SetupHeroesWindow();
        }