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"); } }
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"); }
public static void DeleteSocks(Socks socks) { Wardrobe.Remove(socks); }
public static void Add(Socks socks) { Wardrobe.Add(socks); }