Made the event trigger private and removed it from the interface
This commit is contained in:
Trevor Payne
2020-11-02 09:59:22 -06:00
parent 5fcafe0b38
commit e27c041256
14 changed files with 14 additions and 14 deletions

View File

@@ -139,7 +139,7 @@ namespace PepperDash.Essentials.Core
public interface IRoutingNumericFeedback : IKeyName public interface IRoutingNumericFeedback : IKeyName
{ {
event EventHandler NumericSwitchChange; event EventHandler NumericSwitchChange;
void OnSwitchChange(RoutingNumericEventArgs e); //void OnSwitchChange(RoutingNumericEventArgs e);
} }
/// <summary> /// <summary>

View File

@@ -160,7 +160,7 @@ namespace PepperDash.Essentials.DM.AirMedia
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -914,7 +914,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -63,7 +63,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -109,7 +109,7 @@ namespace PepperDash.Essentials.DM.Chassis
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -38,7 +38,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -44,7 +44,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -43,7 +43,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -43,7 +43,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -50,7 +50,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -46,7 +46,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -53,7 +53,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -42,7 +42,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }

View File

@@ -47,7 +47,7 @@ namespace PepperDash.Essentials.DM
/// Raise an event when the status of a switch object changes. /// Raise an event when the status of a switch object changes.
/// </summary> /// </summary>
/// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param> /// <param name="e">Arguments defined as IKeyName sender, output, input, and eRoutingSignalType</param>
public void OnSwitchChange(RoutingNumericEventArgs e) private void OnSwitchChange(RoutingNumericEventArgs e)
{ {
if (NumericSwitchChange != null) NumericSwitchChange(this, e); if (NumericSwitchChange != null) NumericSwitchChange(this, e);
} }