|
|
|
@ -54,19 +54,19 @@ namespace Modèle
|
|
|
|
|
|
|
|
|
|
public void ModiferRequin(string description, string photo, string video, string photoCarte, Conservation statutCons, List<Zone> repartition, string funFact)
|
|
|
|
|
{
|
|
|
|
|
if (description != "")
|
|
|
|
|
if (! string.IsNullOrWhiteSpace(description))
|
|
|
|
|
{
|
|
|
|
|
Description = description;
|
|
|
|
|
}
|
|
|
|
|
if(photo != "")
|
|
|
|
|
if(! string.IsNullOrWhiteSpace(photo))
|
|
|
|
|
{
|
|
|
|
|
Photo = photo;
|
|
|
|
|
}
|
|
|
|
|
if(video != "")
|
|
|
|
|
if(!string.IsNullOrWhiteSpace(video))
|
|
|
|
|
{
|
|
|
|
|
Video = video;
|
|
|
|
|
}
|
|
|
|
|
if (photoCarte != "")
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(photoCarte))
|
|
|
|
|
{
|
|
|
|
|
Photo = photoCarte;
|
|
|
|
|
}
|
|
|
|
@ -74,7 +74,7 @@ namespace Modèle
|
|
|
|
|
{
|
|
|
|
|
StatutCons = statutCons;
|
|
|
|
|
}
|
|
|
|
|
if (funFact != "")
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(funFact))
|
|
|
|
|
{
|
|
|
|
|
FunFact = funFact;
|
|
|
|
|
}
|
|
|
|
@ -87,6 +87,15 @@ namespace Modèle
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Equals(Requin r)
|
|
|
|
|
{
|
|
|
|
|
if (Nom==r.Nom && NomSci == r.NomSci)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|