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; }
SelectedTasks
Gets the collection of selected tasks.
public IList<object> SelectedTasks { get; }
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
Type | Name | |
---|---|---|
object | taskA | An representing first task. |
object | taskB | An representing second task. |
bool | oneWay | The value that indicates whether a connection is only one way. |
Color | color | A 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
Type | Name | |
---|---|---|
object | resource | An representing resource. |
TimeSchedulerGraph | graph | An 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
Type | Name | |
---|---|---|
DateTimeInterval | interval | An representing interval of a work time. |
Color | color | A 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
Type | Name | |
---|---|---|
DateTime | dateTime | A representing date time of the marker. |
Color | color | A 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
Type | Name | |
---|---|---|
object | resource | An representing resource. |
DateTime | dateTime | A representing date time of the marker. |
Color | color | A 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
Type | Name | |
---|---|---|
object | task | Object 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
Type | Name | |
---|---|---|
object | resource | An representing resource. |
DateTimeInterval | interval | An 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
Type | Name | |
---|---|---|
object | resource | An representing resource. |
DateTimeInterval | interval | An representing interval of a work time. |
Color | color | A 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
Type | Name | |
---|---|---|
IComparer<Color> | comparer |