示例#1
0
        void Mouse_ButtonUp(object sender, MouseButtonEventArgs e)
        {
            if (_activeWidget == null)
            {
                MouseButtonUp.Raise(this, e);
                return;
            }

            _activeWidget.onMouseUp(this, e);
            _activeWidget = null;
        }
示例#2
0
		public virtual void onMouseUp(object sender, MouseButtonEventArgs e){
			//bubble event to the top
			GraphicObject p = Parent as GraphicObject;
			if (p != null)
				p.onMouseUp(sender,e);

			MouseUp.Raise (this, e);

			if (MouseIsIn (e.Position) && IsActive) {
				if (CurrentInterface.clickTimer.ElapsedMilliseconds < Interface.DoubleClick)
					CurrentInterface.eligibleForDoubleClick = this;
				onMouseClick (this, e);
			}
		}