コード例 #1
0
 /// <summary>
 /// Execute when clock time out event is happened
 /// </summary>
 /// <param name="sender"> Object who created event </param>
 /// <param name="e"> Event information </param>
 protected abstract void LightChanged(object sender, LightArgs e);
コード例 #2
0
 /// <summary>
 /// Event handler of changing of light
 /// </summary>
 /// <param name="sender"> Object that initialized event </param>
 /// <param name="e"> Event arguments </param>
 protected override void LightChanged(object sender, LightArgs e)
 {
     this.Colour = e.Colour;
 }
コード例 #3
0
 /// <summary>
 /// Invoke listeners
 /// </summary>
 /// <param name="sender"> Initializer of event </param>
 /// <param name="eventArgs"> Event arguments </param>
 protected virtual void OnLightChange(object sender, LightArgs eventArgs)
 {
     LightChanged?.Invoke(sender, eventArgs);
 }