예제 #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);
 }
예제 #2
0
파일: Control.cs 프로젝트: maesse/CubeHags
        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);
        }