public void Stop()
 {
     System.Threading.Tasks.Task savingTask = new System.Threading.Tasks.Task(
         () => {
         dataStreamer.SaveData(tasksForEachDay);
         dataStreamer.SaveData(dailyTasks);
     });
     savingTask.Start();
     Controler.Stop();
     System.Threading.Tasks.Task.WaitAll(savingTask);
 }
 public void Stop()
 {
     Controler.Stop();
 }