Exemple #1
0
        protected override void Initialize()
        {
            ScreenComponent screenComponent = new ScreenComponent(this);

            Components.Add(screenComponent);

            screenComponent.KeyDown += (args) =>
            {
                Console.WriteLine("Down: " + args.Key.ToString());
            };

            screenComponent.KeyPress += (args) =>
            {
                Console.WriteLine("Press: " + args.Key.ToString());
            };

            screenComponent.KeyUp += (args) =>
            {
                Console.WriteLine("Up: " + args.Key.ToString());
            };



            base.Initialize();
        }
Exemple #2
0
        protected override void Initialize()
        {
            ScreenComponent screenComponent = new ScreenComponent(this);
            Components.Add(screenComponent);

            screenComponent.KeyDown += (args) =>
            {
              Console.WriteLine("Down: " + args.Key.ToString());
            };

            screenComponent.KeyPress += (args) =>
            {
                Console.WriteLine("Press: " + args.Key.ToString());
            };

            screenComponent.KeyUp += (args) =>
            {
                Console.WriteLine("Up: " + args.Key.ToString());
            };

            base.Initialize();
        }