Exemple #1
0
        private string getWorkSpanStart(int workSpanIndex, bool isInterruption = false)
        {
            if (!this.IsNotificationTurnedOn())
            {
                return("");
            }

            WorkSpan srcWorkSpan = isInterruption ? _dayData.WorkInterruptions[workSpanIndex] : _dayData.WorkSpans[workSpanIndex];
            DateTime startTimeWithCorrections = srcWorkSpan.GetStartTimeIncludingCorrections();

            if (startTimeWithCorrections.Hour == 0 && startTimeWithCorrections.Minute == 0)
            {
                return("");
            }
            else
            {
                return(string.Format("{0:t}", startTimeWithCorrections));
            }
        }