Пример #1
0
        private bool?ExecWeekDays(WeekDays weekDays, DateTime dataAtt)
        {
            string tmp = "";

            return(ExecWeekDays(weekDays, dataAtt, ref tmp));
        }
Пример #2
0
        //Public Sub New() 'Questo costruttore serve per fare un nuovo ogg prima del deserializzatore?
        //End Sub

        /// <summary>
        /// </summary>
        /// <param name="periodicCycle">Se valorizzato verrà eseguita non più di una volta ogni unità di periodicita, es perdiocità settimanale = al massimo 1 volta a settimana</param>
        /// <param name="intervalloVerificaMs">Se 0 non verrà scatenato l'evento "Esegui" in automatico ma si dovrà richiamare il metodo Eseguibile per sapere se si ha il permesso dello scheduler</param>
        public SchedulerM(Periodicity periodicCycle = null, HourlyPeriods hourlyPeriods = null, WeekDays weekDays               = null, MonthsAndDays monthsAndDays = null, YearWeeks yearWeeks = null,
                          YearDays yearDays         = null, WeekDay weekStartsDay = WeekDay.Monday, UInt32 intervalloVerificaMs = 0)
        {
            //Creo gli oggetti per far in modo che i vari dataGrid abbiano gli oggetti su cui fare il binding
            this.PeriodicCycle   = periodicCycle;
            this.HourlyPeriods   = hourlyPeriods;
            this.WeekDays        = weekDays;
            this.MonthsAndDays   = monthsAndDays;
            this.YearWeeks       = yearWeeks;
            this.YearDays        = yearDays;
            this.WeekStartsDay   = weekStartsDay;
            this.CheckIntervalMs = intervalloVerificaMs;

            this.lastTimeExec          = DateTime.MinValue;
            this.firmeUltimeEsecuzione = new List <Tuple <DateTime, String> >();

            tmrCheckIfExecutable.Elapsed += TmrCheckIfExecutable_Elapsed;
        }