/// <summary>
 /// when an event has been selected, display its information if it is currently unselected and hide its information if its currently selected
 /// </summary>
 /// <param name="ev"></param>
 public void eventSelected(Event ev)
 {
     if (ev.infoIsDisplayed())
     {
         eventInfo.Text = "";
         ev.setInfoIsDisplayed(false);
         eventInfoContainer.Visibility = Visibility.Hidden;
         _eventDisplayed = null;
     }
     else
     {
         eventInfoContainer.Height = 500.0 / 1080.0 * _windowSize.Height;
         String newText = "";
         newText += ev.Event_Name + " (" + ev.Start + " - " + ev.End + ")";
         if (ev.Location != "")
         {
             newText += ", " + ev.Location;
         }
         if (ev.Description != "")
         {
             newText += ": " + ev.Description;
         }
         eventInfo.Text = newText;
         ev.setInfoIsDisplayed(true);
         eventInfoContainer.Visibility = Visibility.Visible;
         if (_eventDisplayed != null)
         {
             _eventDisplayed.setInfoIsDisplayed(false);
         }
         _eventDisplayed = ev;
     }
 }