private void editEventBtn_Click(object sender, RoutedEventArgs e)
 {
     EventInfo eventToEdit = GetSelectedItem();
     if (eventToEdit != null)
     {
         Events.AddUpcomingEventWindow AddEventWindowObj = new Events.AddUpcomingEventWindow(eventToEdit);
         AddEventWindowObj.Show();
     }
 }
 private void addUpcomingEventBtn_Click(object sender, RoutedEventArgs e)
 {
     Events.AddUpcomingEventWindow AddUpcomingEventWindowObj = new Events.AddUpcomingEventWindow(null);
     AddUpcomingEventWindowObj.Show();
 }