Called by the recurrence whenever a new occurrence is being generated in order to populate the fields of the instance from the master item.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling.Wpf
SyntaxC#
Copy Code
|
|---|
protected virtual void CopyOccurrence ( |
Visual Basic
Copy Code
|
|---|
Protected Overridable Sub CopyOccurrence ( _ |
RemarksThis method is usually overridden in classes which derive from Item or Appointment in order to copy the custom fields from the master item to a particular occurrence. If the method is not overridden, the custom fields for all occurrences will have their default values and not the value of the master item.
ExampleThe following example illustrates how to override CopyOccurrence in a class deriving from Appointment and how to copy the custom fields from the master item.
C#
Copy Code
|
|---|
class CustomAppointment : Appointment |
Visual Basic
Copy Code
|
|---|
Class CustomAppointment |
See Also