示例#1
0
 public void CleanSocks(Socks socks)
 {
     if (socks.IsClean == false)
     {
         socks.IsClean = true;
         Console.WriteLine("Socks were cleaned. Now you can use them");
     }
     else
     {
         Console.WriteLine("Socks are clened already you can use them");
     }
 }
示例#2
0
 public void UseSocks(Socks socks)
 {
     if (socks.IsClean == false)
     {
         Console.WriteLine("Socks are dirty and smell very bad! You need to clean them!");
         socks.CleanSocks(socks);
     }
     else
     {
         socks.IsClean = false;
     }
     Console.WriteLine("Socks were used, so now they are dirty");
 }
示例#3
0
 public static void DeleteSocks(Socks socks)
 {
     Wardrobe.Remove(socks);
 }
示例#4
0
 public static void Add(Socks socks)
 {
     Wardrobe.Add(socks);
 }