-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generador de regalos a fin de mes refactorizado, reproducción random …
…mejorado desde la primera canción, solución a expresiones regulares para validar el nombre de los regalos
- Loading branch information
1 parent
5afb0b1
commit ffdbe0d
Showing
543 changed files
with
243,491 additions
and
8,349 deletions.
There are no files selected for viewing
Binary file removed
BIN
-25.2 KB
.vs/MediaPlayer/FileContentIndex/17ff9d98-4b98-49b9-a101-f412cf3bc037.vsidx
Binary file not shown.
Binary file added
BIN
+25.2 KB
.vs/MediaPlayer/FileContentIndex/27dcd826-a981-4edd-83e9-1d28a689b289.vsidx
Binary file not shown.
Binary file removed
BIN
-345 KB
.vs/MediaPlayer/FileContentIndex/3f659fe0-c5c1-47e3-ad73-35dc26fbc588.vsidx
Binary file not shown.
Binary file removed
BIN
-26.2 KB
.vs/MediaPlayer/FileContentIndex/459e119a-0b8c-41c3-83c5-0d7413718f97.vsidx
Binary file not shown.
Binary file removed
BIN
-34.7 KB
.vs/MediaPlayer/FileContentIndex/4d022087-e494-4f5c-b569-6dbb2f128720.vsidx
Binary file not shown.
Binary file added
BIN
+34.9 KB
.vs/MediaPlayer/FileContentIndex/55d89ba1-5666-4635-8172-7edea8ed4697.vsidx
Binary file not shown.
Binary file added
BIN
+26.4 KB
.vs/MediaPlayer/FileContentIndex/6febc3f4-d02b-424f-b561-e402bd0e455e.vsidx
Binary file not shown.
Binary file added
BIN
+346 KB
.vs/MediaPlayer/FileContentIndex/c30e5beb-3f2d-42fa-93c4-90d3514c228f.vsidx
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 41 additions & 36 deletions
77
ReproductorMusicaTagEditables/Mvvm/ExtensionMetodos/Seleccionador.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,41 @@ | ||
using ReproductorMusicaTagEditables.Mvvm.Model; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
|
||
|
||
namespace ReproductorMusicaTagEditables.Mvvm.ExtensionMetodos | ||
{ | ||
public static class Seleccionador | ||
{ | ||
public static ObservableCollection<Cancion> Seleccionar(this ObservableCollection<Cancion> canciones ,int index) | ||
{ | ||
if (index >= 0 && index < canciones.Count) | ||
{ | ||
canciones[index].EstadoColor = "Red"; | ||
} | ||
return new ObservableCollection<Cancion>( canciones); | ||
} | ||
|
||
public static ObservableCollection<Cancion> Deseleccionar(this ObservableCollection<Cancion> canciones) | ||
{ | ||
foreach (var c in canciones) | ||
{ | ||
c.EstadoColor = "White"; | ||
} | ||
return canciones; | ||
} | ||
|
||
|
||
public static int IndexRan(this List<Cancion> origen) | ||
{ | ||
Random r = new Random(); | ||
return r.Next(0,origen.Count); | ||
} | ||
} | ||
} | ||
using ReproductorMusicaTagEditables.Mvvm.Model; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
|
||
|
||
namespace ReproductorMusicaTagEditables.Mvvm.ExtensionMetodos | ||
{ | ||
public static class Seleccionador | ||
{ | ||
public static ObservableCollection<Cancion> Seleccionar(this ObservableCollection<Cancion> canciones ,int index) | ||
{ | ||
if (index >= 0 && index < canciones.Count) | ||
{ | ||
canciones[index].EstadoColor = "Red"; | ||
} | ||
return new ObservableCollection<Cancion>( canciones); | ||
} | ||
|
||
public static ObservableCollection<Cancion> Deseleccionar(this ObservableCollection<Cancion> canciones) | ||
{ | ||
foreach (var c in canciones) | ||
{ | ||
c.EstadoColor = "White"; | ||
} | ||
return canciones; | ||
} | ||
|
||
|
||
public static int IndexRan(this List<Cancion> origen) | ||
{ | ||
Random r = new Random(); | ||
return r.Next(0,origen.Count); | ||
} | ||
public static int IndexRan(this ObservableCollection<Cancion> origen) | ||
{ | ||
Random r = new Random(); | ||
return r.Next(0, origen.Count); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.