Ejemplo n.º 1
0
 public void adddatetime(DateTime process, timeHandle handle)
 {
     if (!addtimeHandle.ContainsKey(process))
     {
         addtimeHandle.Add(process, new List <timeHandle>());
     }
     addtimeHandle[process].Add(handle);
 }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
 public void adddatetime(DateTime process, timeHandle handle)
 {
     timeHandledict.Add(process, handle);
 }
Ejemplo n.º 5
0
        public void addloopweekdaytime(System.DayOfWeek day, int hour, int minute, int second, timeHandle handle)
        {
            week_day_time key = new week_day_time();

            key.day    = day;
            key.hour   = hour;
            key.minute = minute;
            key.second = second;
            if (!addloopweekdaytimeHandle.ContainsKey(key))
            {
                addloopweekdaytimeHandle.Add(key, new List <timeHandle>());
            }
            addloopweekdaytimeHandle[key].Add(handle);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
 public HandleImpl(timeHandle handle_)
 {
     is_del = false;
     handle = handle_;
 }
Ejemplo n.º 8
0
 public void adddatetime(DateTime process, timeHandle handle)
 {
     timeHandledict.Add(process, handle);
 }