public static Event CreateNew(Dictionary <Event, List <Attendee> > events)
        {
            var eventName     = EventDataProvider.ProvideName();
            var eventType     = EventDataProvider.ProvideType();
            var eventTimeData = EventDataProvider.ProvideDuration(events);

            return(new Event(eventName, eventTimeData["startTime"], eventTimeData["endTime"], eventType));
        }
        private static bool HandleEditEventField(int edittingField, Event edittingEvent, Dictionary <Event, List <Attendee> > allEvents)
        {
            var isEdittingDone = false;

            switch (edittingField)
            {
            case 0:
                var newName = EventDataProvider.ProvideName();
                if (UserDialogDataProvider.ConfirmAction() == true)
                {
                    edittingEvent.Name = newName;
                }
                break;

            case 1:
                var newType = EventDataProvider.ProvideType();
                if (UserDialogDataProvider.ConfirmAction() == true)
                {
                    edittingEvent.Type = (EventType)newType;
                }
                break;

            case 2:
                var newDuration = EventDataProvider.ProvideDuration(allEvents);
                if (UserDialogDataProvider.ConfirmAction() == true)
                {
                    edittingEvent.StartTime = newDuration["startTime"];
                    edittingEvent.EndTime   = newDuration["endTime"];
                }
                break;

            default:
                isEdittingDone = true;
                break;
            }

            return(isEdittingDone);
        }