Пример #1
0
        public override string ToString()
        {
            string output = "";

            if (IsPriority)
            {
                output += "[PRIORITY]";
            }
            output += "\n" + Content + "\n(Added on: " + AddDate.ToLongDateString();

            if (!DateTime.Equals(DateTime.MaxValue.Date, DueDate.Date))
            {
                output += "; Due date: " + DueDate.ToLongDateString();
            }
            output += ")";
            return(output);
        }