BS_GenericEvent

Add a class to the MVP folder called "BS_GenericEvent".
Make the following changes to this class.

public class BS_GenericEvent<T> 
{
   public event System.EventHandler<MVP.BS_EventArgs<T>> OnMyEvent;

//-----------------------------------------------------------------------
   public void Method_Fire(object Sender, T RequestedValue)
   {
      if (this.OnMyEvent != null)
      {
          this.OnMyEvent(Sender, new MVP.BS_EventArgs<T>(RequestedValue));
      }
   }
}

© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext