Пример #1
0
        /// <summary>
        /// Opens a form in which an event can be chosen
        /// </summary>
        /// <param name="events">The list of events to choose from</param>
        /// <returns>The chosen event</returns>
        private Event SelectEvent(List <Event> events)
        {
            Event result = null;

            var form = new EventSelectionForm(events);

            if (form.ShowDialog() == DialogResult.OK)
            {
                result = form.Event;
            }

            return(result);
        }
        /// <summary>
        /// Opens a form in which an event can be chosen
        /// </summary>
        /// <param name="events">The list of events to choose from</param>
        /// <returns>The chosen event</returns>
        private Event SelectEvent(List<Event> events)
        {
            Event result = null;

            var form = new EventSelectionForm(events);
            if (form.ShowDialog() == DialogResult.OK)
            {
                result = form.Event;
            }

            return result;
        }