예제 #1
0
 void SetCrewImage()
 {
     for (int i = 0; i < Crews.Count(); i++)
     {
         if (Crews[i].role == "Master")
         {
             Crews[i].crewImage = "mcdonalds.png";
         }
         else if (Crews[i].role == "Chief Engineer")
         {
             Crews[i].crewImage = "careem.png";
         }
         else if (Crews[i].role == "Technical Manager")
         {
             Crews[i].crewImage = "centrepoint.png";
         }
         else
         {
             Crews[i].crewImage = "starbucks.png";
         }
     }
 }