private void HandleDayViewMouseClick(MouseEventArgs e, bool doubleClick) { if (m_DayView.ReadOnly) { return; } var appointment = m_DayView.GetAppointmentAt(e.Location.X, e.Location.Y); if (appointment == null) { return; } var taskItem = (appointment as CalendarItem); if ((taskItem == null) || taskItem.Locked) { return; } if (taskItem.IconRect.Contains(e.Location)) { var notify = new UIExtension.ParentNotify(m_HwndParent); notify.NotifyEditIcon(); } else if (doubleClick) { var notify = new UIExtension.ParentNotify(m_HwndParent); notify.NotifyEditLabel(); } }
private void OnDayViewMouseClick(object sender, MouseEventArgs e) { if (m_DayView.ReadOnly) { return; } Calendar.Appointment appointment = m_DayView.GetAppointmentAt(e.Location.X, e.Location.Y); if (appointment == null) { return; } var taskItem = (appointment as CalendarItem); if ((taskItem == null) || taskItem.IsLocked) { return; } if (taskItem.IconRect.Contains(e.Location)) { var notify = new UIExtension.ParentNotify(m_HwndParent); notify.NotifyEditIcon(); } }