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