/// <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(); } }
/// <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(); }