예제 #1
0
        private void _client_EventToBeDelayed(object sender, NuGenDEHEventArgs e)
        {
            _currentSender    = sender;
            _currentEventArgs = e;

            Debug.Assert(_eventRaiseTimer != null, "_eventRaiseTimer != null");
            _eventRaiseTimer.Start();
        }
예제 #2
0
		private void _client_EventToBeDelayed(object sender, NuGenDEHEventArgs e)
		{
			_currentSender = sender;
			_currentEventArgs = e;

			Debug.Assert(_eventRaiseTimer != null, "_eventRaiseTimer != null");
			_eventRaiseTimer.Start();
		}
			public void HandleDelayedEvent(object sender, NuGenDEHEventArgs e)
			{
				if (e is NuGenDEHEventArgs)
				{
					this.handleEventCallsCount.Inc();
					this.targetData.Actual = ((NuGenDEHEventArgs)e).LParam;
				}
			}
			protected virtual void OnEventToBeDelayed(NuGenDEHEventArgs e)
			{
				if (this.EventToBeDelayed != null)
				{
					this.EventToBeDelayed(this, e);
				}
			}
			public void HandleDelayedEvent(object sender, NuGenDEHEventArgs e)
			{
			}
		/// <summary>
		/// Invokes <see cref="NuGenDEHEventHandler"/> specified by the <paramref name="key"/>.
		/// </summary>
		/// <param name="key">Specifies the <see cref="NuGenDEHEventHandler"/> to invoke.</param>
		/// <param name="e">Specifies the <see cref="NuGenDEHEventArgs"/> instance containing the event data.</param>
		/// <exception cref="T:System.InvalidOperationException">
		/// The <see cref="T:System.Delegate"/> specified by the <paramref name="key"/> is not compatible
		/// with <see cref="NuGenDEHEventHandler"/>.
		/// </exception>
		public void InvokeEventToBeDelayed(object key, NuGenDEHEventArgs e)
		{
			this.InvokeHandler<NuGenDEHEventHandler, NuGenDEHEventArgs>(key, e);
		}
예제 #7
0
 /// <summary>
 /// Invokes <see cref="NuGenDEHEventHandler"/> specified by the <paramref name="key"/>.
 /// </summary>
 /// <param name="key">Specifies the <see cref="NuGenDEHEventHandler"/> to invoke.</param>
 /// <param name="e">Specifies the <see cref="NuGenDEHEventArgs"/> instance containing the event data.</param>
 /// <exception cref="T:System.InvalidOperationException">
 /// The <see cref="T:System.Delegate"/> specified by the <paramref name="key"/> is not compatible
 /// with <see cref="NuGenDEHEventHandler"/>.
 /// </exception>
 public void InvokeEventToBeDelayed(object key, NuGenDEHEventArgs e)
 {
     this.InvokeHandler <NuGenDEHEventHandler, NuGenDEHEventArgs>(key, e);
 }