Exemplo n.º 1
0
        public string GetStringFormatOfDateTime(DateTime dateTime)
        {
            string formatDateTime = "00:00:00";

            if (Clothes != null)
            {
                if (dateTime != null)
                {
                    formatDateTime = Clothes.getTimeFormatString(dateTime);
                }
            }

            return(formatDateTime);
        }
Exemplo n.º 2
0
        private int GetTimeFromTheNewChangeOfClothesType(int minuteElpased)
        {
            DateTime InitialTime = Clothes.getWashingTimeForInitialTypeOfClothingDateTime();

            return((Clothes.InitialTypeOfClothing == Clothes.TypeOfClothingInWashingTime) ? minuteElpased : (InitialTime.Minute - minuteElpased));
        }