public string GetStringFormatOfDateTime(DateTime dateTime) { string formatDateTime = "00:00:00"; if (Clothes != null) { if (dateTime != null) { formatDateTime = Clothes.getTimeFormatString(dateTime); } } return(formatDateTime); }
private int GetTimeFromTheNewChangeOfClothesType(int minuteElpased) { DateTime InitialTime = Clothes.getWashingTimeForInitialTypeOfClothingDateTime(); return((Clothes.InitialTypeOfClothing == Clothes.TypeOfClothingInWashingTime) ? minuteElpased : (InitialTime.Minute - minuteElpased)); }