public override IActionResult Execute(ActionParameters parameters)
        {
            _appointmentView = ViewFactory.CreateView("DefaultAppointmentView") as IAppointmentView;
            BindNewData();
            _appointmentView.StateChanged         += AppointmentViewStateChanged;
            _appointmentView.AppointmentsInserted += AppointmentViewAppointmentsInserted;
            _appointmentView.AppointmentsChanged  += AppointmentViewAppointmentsChanged;
            _appointmentView.AppointmentsDeleted  += AppointmentViewAppointmentsDeleted;
            _appointmentView.AppointmentInserting += AppointmentViewAppointmentInserting;
            _appointmentView.AppointmentChanging  += AppointmentViewAppointmentChanging;
            _appointmentView.AppointmentDeleting  += AppointmentViewAppointmentDeleting;
            var result = new PartialViewResult();

            result.View = _appointmentView;
            return(result);
        }
        private void SchedulerControl_MouseMove(object sender, MouseEventArgs e)
        {
            // Obtain hit information under the test point.
            SchedulerControlHitInfo hitInfo = schedulerControl1.ActiveView.CalcHitInfo(e);
            StringBuilder           builder = new StringBuilder();

            // Check whether the scheduler element is located at the test point.
            switch (hitInfo.HitTest)
            {
            case SchedulerHitTest.AllDayArea:
                builder.AppendLine("All-Day Area");
                break;

            case SchedulerHitTest.AppointmentContent:
                builder.AppendLine("Appointment");
                IAppointmentView appView = hitInfo.ViewInfo as IAppointmentView;
                if (appView != null)
                {
                    builder.AppendLine("Subject: " + appView.Appointment.Subject);
                    builder.AppendLine("Start: " + appView.Appointment.Start.ToString());
                    builder.AppendLine("End: " + appView.Appointment.End.ToString());
                }
                break;

            case SchedulerHitTest.Cell:
                builder.AppendLine("Time Cell");
                break;
            }

            if (builder.Length > 0)
            {
                builder.AppendLine("Interval: " + hitInfo.ViewInfo.Interval.ToString());
                builder.AppendLine("Is Selected? " + hitInfo.ViewInfo.Selected.ToString());
                lbl1.Content = string.Format("Hit test results:\n" + builder.ToString());
            }
            else
            {
                lbl1.Content = "Move the mouse pointer over the scheduler\n to get information on the element which is hovered over.";
            }
        }
 public void SetView(IAppointmentView view)
 {
     m_view = view;
 }