Beispiel #1
0
 public DayData(string i_MonthDay, string i_WeekDay, string i_DayType)
 {
     m_MonthDay = i_MonthDay;
     m_WeekDay = i_WeekDay;
     m_DayType = DayTypeFactory.Get(i_DayType);
     m_ArrivalTime = new TimeData();
     m_LeavingTime = new TimeData();
 }
Beispiel #2
0
 public DayData(string i_MonthDay, string i_WeekDay, string i_DayType)
 {
     m_MonthDay = i_MonthDay;
     m_WeekDay = i_WeekDay;
     m_DayType = DayTypeFactory.Get(i_DayType);
     m_ArrivalTime = new TimeData();
     m_LeavingTime = new TimeData();
 }
Beispiel #3
0
 public DayData(string i_MonthDay, string i_WeekDay, TimeData i_ArrivalTime, TimeData i_LeavingTime, eDayType i_DayType, string i_Comment)
 {
     m_MonthDay = i_MonthDay;
     m_WeekDay = i_WeekDay;
     m_ArrivalTime = i_ArrivalTime;
     m_LeavingTime = i_LeavingTime;
     m_Comment = i_Comment;
     m_DayType = i_DayType;
 }
Beispiel #4
0
 public DayData(string i_MonthDay, string i_WeekDay, TimeData i_ArrivalTime, TimeData i_LeavingTime, eDayType i_DayType, string i_Comment)
 {
     m_MonthDay = i_MonthDay;
     m_WeekDay = i_WeekDay;
     m_ArrivalTime = i_ArrivalTime;
     m_LeavingTime = i_LeavingTime;
     m_Comment = i_Comment;
     m_DayType = i_DayType;
 }
Beispiel #5
0
 public DayData(string allData)
 {
     string[] sllDataArr = allData.Split(sr_Seperator);
     m_MonthDay = setMonthDay(sllDataArr[(int)eColumn.MonthDay]);
     m_WeekDay = sllDataArr[(int)eColumn.WeekDay];
     m_ArrivalTime = new TimeData(sllDataArr[(int)eColumn.Arrival]);
     m_LeavingTime = new TimeData(sllDataArr[(int)eColumn.Leaving]);
     m_DayType = DayTypeFactory.Get(sllDataArr[(int)eColumn.DayType]);
     m_Comment = sllDataArr[(int)eColumn.Comment];
 }
Beispiel #6
0
 public DayData(string allData)
 {
     string[] sllDataArr = allData.Split(sr_Seperator);
     m_MonthDay = setMonthDay(sllDataArr[(int)eColumn.MonthDay]);
     m_WeekDay = sllDataArr[(int)eColumn.WeekDay];
     m_ArrivalTime = new TimeData(sllDataArr[(int)eColumn.Arrival]);
     m_LeavingTime = new TimeData(sllDataArr[(int)eColumn.Leaving]);
     m_DayType = DayTypeFactory.Get(sllDataArr[(int)eColumn.DayType]);
     m_Comment = sllDataArr[(int)eColumn.Comment];
 }
Beispiel #7
0
        public string Subtract(TimeData i_ToSubtract)
        {
            if (isTimeSet() && i_ToSubtract != null && i_ToSubtract.isTimeSet())
            {
                TimeSpan?time = AsTimeSpan() - i_ToSubtract.AsTimeSpan();
                return(time.ToString().Replace(TimeWatch.sr_RowSeparatorStr, TimeWatch.sr_DashReplacer));
            }

            return("");
        }
Beispiel #8
0
        public string Subtract(TimeData i_ToSubtract)
        {
            if (isTimeSet() && i_ToSubtract != null && i_ToSubtract.isTimeSet())
            {
                TimeSpan? time = AsTimeSpan() - i_ToSubtract.AsTimeSpan();
                return time.ToString().Replace(TimeWatch.sr_RowSeparatorStr, TimeWatch.sr_DashReplacer);
            }

            return "";
        }
Beispiel #9
0
        public override bool Equals(object i_Other)
        {
            TimeData other = i_Other as TimeData;

            return(other != null && Time == other.Time);
        }