コード例 #1
0
ファイル: NUnitCrowWindow.cs プロジェクト: jpbruyere/crow.deb
        void Mouse_ButtonUp(object sender, MouseButtonEventArgs e)
        {
            if (_activeWidget == null)
            {
                MouseButtonUp.Raise(this, e);
                return;
            }

            _activeWidget.onMouseUp(this, e);
            _activeWidget = null;
        }
コード例 #2
0
ファイル: GraphicObject.cs プロジェクト: slagusev/Crow
		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);
			}
		}