public void addloopdaytime(int hour, int minute, int second, timeHandle handle) { day_time key = new day_time(); key.hour = hour; key.minute = minute; key.second = second; if (!adddaytimeHandle.ContainsKey(key)) { adddaytimeHandle.Add(key, new List <timeHandle>()); } adddaytimeHandle[key].Add(handle); }
public String addloopdaytime(int hour, int minute, int second, timeHandle handle) { day_time key = new day_time(); key.hour = hour; key.minute = minute; key.second = second; if (!adddaytimeHandle.ContainsKey(key)) { adddaytimeHandle.Add(key, new List <HandleImpl>()); } var impl = new HandleImpl(handle); var uuid = System.Guid.NewGuid().ToString(); adddaytimeHandle[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); } day_time tmp = (day_time)obj; if (hour == tmp.hour && minute == tmp.minute && second == tmp.second) { return(true); } return(false); }