/// <summary> /// CustomLaDisplayControl Mouse Over event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void customLaDisplayControl1_OnMouseOver(object sender, LaMouseOverEventArgs e) { this.statChannel.Text = e.Channel.ToString(); this.statTime.Text = e.Time; e.Dispose(); // Recycle. }
public static LaMouseOverEventArgs GetInstance(int Channel, string Time) { LaMouseOverEventArgs args = objectPool.GetObject(); args.Channel = Channel; args.Time = Time; return args; }
/// <summary> /// Broadcast a message signalling to listeners that mouse has moved over a new channel and/or time. /// </summary> /// <param name="Channel">The channel that the cursor is hovering over</param> /// <param name="Time">The time that the cursor is hovering over</param> protected void BroadcastOnMouseOver(int Channel, string Time) { EventHandler <LaMouseOverEventArgs> handler = OnMouseOver; if (handler != null) { handler(this, LaMouseOverEventArgs.GetInstance(Channel, Time)); } }