public void addmonthdaytime(int month, int day, int hour, int minute, int second, timeHandle handle) { month_day_time key = new month_day_time(); key.month = month; key.day = day; key.hour = hour; key.minute = minute; key.second = second; if (!addmonthtimeHandle.ContainsKey(key)) { addmonthtimeHandle.Add(key, new List <timeHandle>()); } addmonthtimeHandle[key].Add(handle); }
public String addmonthdaytime(int month, int day, int hour, int minute, int second, timeHandle handle) { month_day_time key = new month_day_time(); key.month = month; key.day = day; key.hour = hour; key.minute = minute; key.second = second; if (!addmonthtimeHandle.ContainsKey(key)) { addmonthtimeHandle.Add(key, new List <HandleImpl>()); } var impl = new HandleImpl(handle); var uuid = System.Guid.NewGuid().ToString(); addmonthtimeHandle[key].Add(impl); delimpldict.Add(uuid, impl); return(uuid); }
public override bool Equals(object obj) { if (null == obj) { return(false); } if (obj.GetType() != this.GetType()) { return(false); } month_day_time tmp = (month_day_time)obj; if (month == tmp.month && day == tmp.day && hour == tmp.hour && minute == tmp.minute && second == tmp.second) { return(true); } return(false); }