public void Onvideoreproduction(object sender, ReproduccionesEventArgs e) { foreach (Video video in videos) { if (e.Nametext.Contains(video.VideoName)) { video.Reproduction++; } } SerializeData(); }
public void Onsongreproduction(object sender, ReproduccionesEventArgs e) { foreach (Song song in songs) { if (e.Nametext.Contains(song.Namesong)) { song.Reproduction++; } } SerializeData(); }