private void SetButton(Button button, Image img, Event ev)
        {
            var sprite = Resources.Load <Sprite>("Events/" + Events.EventList[(Events.EventID)ev.id]);

            if (sprite)
            {
                img.sprite = sprite;
            }
            var eventButton = button.GetComponent <PollButton>();

            eventButton.ID = ev.id;
            button.GetComponentInChildren <Text>().text = Events.EventList[(Events.EventID)ev.id];
        }
        private void DisplayEventResults(Event ev, Image img, Text text)
        {
            var name = Events.EventList[(Events.EventID)ev.id];
            var msg  = name + "\n" + ev.votes + " votes";

            text.text = msg;

            var sprite = Resources.Load <Sprite>("Events/" + Events.EventList[(Events.EventID)ev.id]);

            if (sprite)
            {
                img.sprite = sprite;
            }
        }