private bool UpdateTasks(List <ReminderTask> reminderTasks, TasksWrapper tasksWrapper)
        {
            OutlookTasksWrapper wrapper = UpdateTasksToOutlook(reminderTasks, tasksWrapper);

            if (!wrapper.WaitForApplicationQuit)
            {
                return(wrapper.Success);
            }

            while (Process.GetProcessesByName("OUTLOOK").Any())
            {
                ThreadingTask.Delay(5000);
            }
            return(wrapper.Success);
        }
        private bool DeleteTasks(List <ReminderTask> reminderTasks, List <ReminderTask> deletedTasks)
        {
            OutlookTasksWrapper wrapper = DeleteTasksFromOutlook(reminderTasks, deletedTasks);

            if (!wrapper.WaitForApplicationQuit)
            {
                return(wrapper.Success);
            }

            while (Process.GetProcessesByName("OUTLOOK").Any())
            {
                ThreadingTask.Delay(5000);
            }
            return(wrapper.Success);
        }