Exemple #1
0
        async internal void TestScheduler()
        {
            ViewState = ViewStates.InTestCalculation;
            StringBuilder result = new StringBuilder();

            SchedulerM.resetFirmeUltimeEsecuzione();
            Task <SortedDictionary <DateTime, string> > taskThread = Task <SortedDictionary <DateTime, string> > .Factory.StartNew(() => SchedulerM.TestScheduler(false));

            await taskThread;

            foreach (KeyValuePair <DateTime, string> date in taskThread.Result)
            {
                result.Append(date.Value + " - " + date.Key.DayOfWeek + Util.crLf);
            }

            //TestResult += date.Value + " - " + date.Key.DayOfWeek + Util.crLf;
            TestResult = result.ToString().RemoveFinal(Util.crLf);

            ViewState = ViewStates.InTestResultShowing;
        }
Exemple #2
0
 public SchedulerVM(SchedulerM schedulerM) //SchedulerM parameter constructor for CreateVmFromM Converter
 {
     SchedulerM = schedulerM;
 }
Exemple #3
0
 public SchedulerVM()
 {
     SchedulerM = new SchedulerM();
 }