API Documentation

TimeSchedulerDataSourceView

Namespace: TagBites.WinSchedulers
Assembly: TagBites.WinSchedulers.dll

Represents the object storing data for TagBites.WinSchedulers.TimeScheduler.

public class TimeSchedulerDataSourceView

Properties

Interval

Gets the viewport interval.

public DateTimeInterval Interval { get; }

Result Type: DateTimeInterval

Resources

Gets a collection of resources.

public IList<object> Resources { get; }

Result Type: IList<object>

SelectedTasks

Gets the collection of selected tasks.

public IList<object> SelectedTasks { get; }

Result Type: IList<object>

Methods

AddConnection(object, object, bool, Color)

Adds a connection between and with specified color. If the or the is not added using TagBites.WinSchedulers.TimeSchedulerDataSourceView.AddTask(System.Object) before it is added implicitly.

public void AddConnection(object taskA, object taskB, bool oneWay, Color color)

Result Type: void

Parameters

TypeName
objecttaskAAn representing first task.
objecttaskBAn representing second task.
booloneWayThe value that indicates whether a connection is only one way.
ColorcolorA representing color of a connection.

AddGraph(object, TimeSchedulerGraph)

Adds a graph to the end of the graph collection. Each graph could be add only once.

public void AddGraph(object resource, TimeSchedulerGraph graph)

Result Type: void

Parameters

TypeName
objectresourceAn representing resource.
TimeSchedulerGraphgraphAn representing graph data with specified points.

AddIntervalMarker(DateTimeInterval, Color)

Adds a interval marker at specified interval with specified color.

public void AddIntervalMarker(DateTimeInterval interval, Color color)

Result Type: void

Parameters

TypeName
DateTimeIntervalintervalAn representing interval of a work time.
ColorcolorA representing color of a interval marker.

AddMarker(DateTime, Color)

Adds a line at specified date time for all resources with specified color.

public void AddMarker(DateTime dateTime, Color color)

Result Type: void

Parameters

TypeName
DateTimedateTimeA representing date time of the marker.
ColorcolorA representing color of a marker.

AddMarker(object, DateTime, Color)

Adds a line at specified date time specified resource with specified color.

public void AddMarker(object resource, DateTime dateTime, Color color)

Result Type: void

Parameters

TypeName
objectresourceAn representing resource.
DateTimedateTimeA representing date time of the marker.
ColorcolorA representing color of a marker.

AddTask(object)

Adds the task to the end of the task collection. Each task could be add only once.

public void AddTask(object task)

Result Type: void

Parameters

TypeName
objecttaskObject representing a task.

AddWorkTime(object, DateTimeInterval)

Adds the resource to the end of the resource collection.

public void AddWorkTime(object resource, DateTimeInterval interval)

Result Type: void

Parameters

TypeName
objectresourceAn representing resource.
DateTimeIntervalintervalAn representing interval of work time.

AddWorkTime(object, DateTimeInterval, Color)

Adds the resource with specified color to the end of the resource collection.

public void AddWorkTime(object resource, DateTimeInterval interval, Color color)

Result Type: void

Parameters

TypeName
objectresourceAn representing resource.
DateTimeIntervalintervalAn representing interval of a work time.
ColorcolorA representing color of a work time.

SortConnectionsByColor()

Sorts connection collection by color.

public void SortConnectionsByColor()

Result Type: void

SortConnectionsByColor(IComparer<Color>)

Sorts connection collection by specified comparer.

public void SortConnectionsByColor(IComparer<Color> comparer)

Result Type: void

Parameters

TypeName
IComparer<Color>comparer