MindFusion.Wpf Pack Programmer's Guide
Schedule Members
Constructors Fields Properties Methods Events
 


Represents a timetable of scheduled events. In the model-view architecture, Schedule instances are the documents whose data is displayed by Calendar instances - the views.

The following tables list the members exposed by the Schedule type.

 Public Constructors

  Name Description

Schedule

Initializes a new instance of the Schedule class.

 Public Fields

  Name Description

CurrentVersion

The current version of schedule file format.

 Public Properties

  Name Description

CanRedo

Gets or sets a value indicating whether there is a command in the redo history which can be redone

CanUndo

Gets or sets a value indicating whether there is a command in the undo history which can be undone.

Contacts

Gets all contacts defined in the Schedule.

Items

Gets all scheduled items.

Locations

Gets all locations defined in the Schedule.

Resources

Gets all resources defined in the Schedule.

Tasks

Gets all tasks defined in this Schedule.

UndoEnabled

Gets or sets a value indicating whether saving action records for later undo is enabled.

 Public Methods

  Name Description

CancelCompositeOperation

Stops recording undo/redo commands into a CompositeCommand and discards the records created so far.

Clear

Clears all items, tasks, locations, contacts and resources contained in this schedule.

CommitCompositeOperation

Stops recording undo/redo commands into a CompositeCommand and saves the composite in the history queue.

ExecuteCommand

Executes the specified command on this schedule.

GetAllItems

Overloaded. Retrieves a collection of all events, including recurrent item instances, scheduled to occur in the specified time interval.

GetFreePeriod

Overloaded. Returns the next period with the specified duration after the specified date, which is not occupied by items.

GetItemsToRemindOf

Overloaded. Retrieves a collection of all items that must be reminded of.

GetTasksToRemindOf

Overloaded.  

IsClassRegistered

Overloaded.  

IsClientClassRegistered

Checks whether an item or resource type with the specified id is registered for JSON serialization.

LoadFrom

Overloaded.  

LoadFromJson

Loads the schedule from a JSON-formatted string.

LoadFromJsonObject

Loads the schedule from a JSON object previously created by SaveToJson.

LoadFromXml

Overloaded.  

Redo

Executes again an action saved in the command history.

RegisterItemClass

Overloaded.  

RegisterResourceClass

Overloaded.  

SaveTo

Overloaded.  

SaveToJson

Saves the schedule to a JSON-formatted string. Call LoadFromJson to restore the schedule data later.

SaveToJsonObject

Saves the schedule to a JsonObject.

SaveToXml

Overloaded.  

StartCompositeOperation

Starts recording undo/redo commands into a CompositeCommand.

Undo

Undoes an action saved in the command history.

UnregisterClass

Overloaded. Unregisters the item or resource with the specified class identifier or type from the system.

 Protected Methods

  Name Description

OnActionRedone

Raises the ActionRedone event.

OnActionUndone

Raises the ActionUndone event.

OnDeserializeTag

Raises the DeserializeTag event.

OnInstantiateItem

Raises the InstantiateItem event.

OnInstantiateResource

Raises the InstantiateResource event.

OnItemEndTimeTriggered

Raises the ItemEndTimeTriggered event.

OnItemReminderTriggered

Raises the ItemReminderTriggered event.

OnJsonDeserializeTag

Raises the JsonDeserializeTag event.

OnJsonSerializeTag

Raises the JsonSerializeTag event.

OnSerializeTag

Raises the SerializeTag event.

OnTaskReminderTriggered

Raises the TaskReminderTriggered event.

 Public Events

  Name Description

ActionRedone

Raised when an action is redone.

ActionUndone

Raised when an action is undone.

Changed

Raised when items are added or removed from the schedule or when the schedule is loaded.

DeserializeTag

Raised during XML deserialization to enable users to perform custom deserialization of the tag values of items and resources.

InstantiateItem

Raised when deserializing a custom item whose type has not been registered.

InstantiateResource

Raised when deserializing a custom resource whose type has not been registered.

ItemEndTimeTriggered

Raised when the reminder for an item is triggered, but taking into consideration the item's end time for the purpose.

ItemReminderTriggered

Raised when the reminder for an item is triggered.

JsonDeserializeTag

Raised during JSON deserialization to enable users to perform custom deserialization of the tag values of items and resources.

JsonSerializeTag

Raised during JSON serialization to enable users to perform custom serialization of the tag values of items and resources.

SerializeTag

Raised during XML serialization to enable users to perform custom serialization of the tag values of items and resources.

TaskReminderTriggered

Raised when the reminder for a task is triggered.

 See Also

Schedule Class
MindFusion.Scheduling Namespace