private void ImagePlayerService_ImgPlayModeChanged(ImgPlayMode obj, IImagePlayerService imagePlayer) { int index = this.MediaSources.FindIndex(l => l.ImagePlayerService == imagePlayer); this.ImgPlayModeChanged?.Invoke(obj); Debug.WriteLine("ImgPlayModeChanged"); }
private void ImagePlayerService_ImageIndexChanged(string arg1, ImgSliderMode arg2, IImagePlayerService arg3) { int index = this.MediaSources.FindIndex(l => l.ImagePlayerService == arg3); this.ImageIndexChanged?.Invoke(arg1, arg2, index); Debug.WriteLine("ImageIndexChanged"); }