Esempio n. 1
0
 public Container(Window window)
     : base(window)
 {
     MouseDown += new ControlEvents.MouseDown(ContainerMouseDownEvent);
     MouseMove += new ControlEvents.MouseMove(ContainerMouseMoveEvent);
     MouseUp += new ControlEvents.MouseUp(ContainerMouseUpEvent);
     MouseEnter += new ControlEvents.MouseEnter(ContainerMouseEnterEvent);
     MouseExit += new ControlEvents.MouseExit(ContainerMouseExitEvent);
     KeyDown += new ControlEvents.KeyDown(ContainerKeyDownEvent);
 }
Esempio n. 2
0
        public Window Window; // window control is part of

        #endregion Fields

        #region Constructors

        public Control(Window window)
        {
            this.Window = window;
            MouseDown = new ControlEvents.MouseDown(MouseDownEvent);
            MouseMove = new ControlEvents.MouseMove(MouseMoveEvent);
            MouseUp = new ControlEvents.MouseUp(MouseUpEvent);
            MouseEnter = new ControlEvents.MouseEnter(MouseEnterEvent);
            MouseExit = new ControlEvents.MouseExit(MouseExitEvent);
            KeyDown = new ControlEvents.KeyDown(KeyDownEvent);
        }