protected virtual void OnPlaybackEnded(ReplayFrame frame)
 {
     if (PlaybackEnded != null)
     {
         ReplayFrameReadyEventArgs e = new ReplayFrameReadyEventArgs()
         {
             ReplayFrame = frame
         };
         PlaybackEnded(this, e);
     }
 }
 protected virtual void OnFrameReady(ReplayFrame frame)
 {
     if (ReplayFrameReady != null)
     {
         ReplayFrameReadyEventArgs e = new ReplayFrameReadyEventArgs()
         {
             ReplayFrame = frame
         };
         ReplayFrameReady(this, e);
     }
 }