Exemple #1
0
    void OnTitleBarMouseMove(object sender, Noesis.MouseEventArgs e)
    {
        if (this._titleBar.GetMouse().Captured == this._titleBar)
        {
            Noesis.Point pos   = e.GetPosition(null);
            Noesis.Point delta = pos - this._lastPosition;
            this._lastPosition = pos;

            this._panelPosition.X += delta.X;
            this._panelPosition.Y += delta.Y;
        }
    }
Exemple #2
0
 void OnTitleBarMouseDown(object sender, Noesis.MouseButtonEventArgs e)
 {
     this._titleBar.CaptureMouse();
     this._lastPosition = e.GetPosition(null);
 }