Beispiel #1
0
        /// <summary>
        /// Item click to access specified appointment details
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void calendar1_ItemDoubleClick(object sender, CalendarItemEventArgs e)
        {
            if (e.Item.Selected)
            {
                CreateAppointment.ClickedAppointment = (APTDETAILS)e.Item.Tag;

                var form = new CreateAppointment();
                form.ShowDialog();
            }
        }
Beispiel #2
0
        /// <summary>
        /// calendar doubleclick - accessing detailed view of appointment or create new
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void calendar_DoubleClick(object sender, EventArgs e)
        {
            CreateAppointment.ClickedAppointment = null;
            if (calendar.SelectedElementStart == null)
            {
                return;
            }
            var form = new CreateAppointment(calendar.SelectedElementStart.Date);

            form.ShowDialog();
        }