Example #1
0
 private void ChangeGoogleAccount_Click(object sender, EventArgs e)
 {
     if (googleCalendarManager != null)
     {
         SaveTasksToFile();
         googleCalendarManager.ChangeGoogleAccount();
         googleCalendarManager = null;
         OpenTasksFromFile(); //Shows only in app added tasks
         DisplayAllTasks();
     }
 }
Example #2
0
 private void GoogleCalendarButton_Click(object sender, EventArgs e)
 {
     googleCalendarManager = new GoogleCalendarManager(this);
     allTasks.AddRange(googleCalendarManager.getGoogleTasks());
     DisplayAllTasks();
 }