示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
            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);
            }