Class ScheduleViewControl
Simplic-extension of the
Inheritance
Implements
Namespace: Simplic.UI.ScheduleView
Assembly: Simplic.UI.dll
Syntax
public class ScheduleViewControl : RadScheduleView, IDisposable
Constructors
| Improve this Doc View SourceScheduleViewControl()
Initializes a new instance of the ScheduleViewControl class.
Declaration
public ScheduleViewControl()
Properties
| Improve this Doc View SourceConnectionsDict
Gets the System.Linq.ILookup<TKey, TElement> of System.Object, ScheduleItemResourceConnection containing the information about which item is connected to which resources.
Declaration
public ILookup<object, ScheduleItemResourceConnection> ConnectionsDict { get; }
Property Value
Type | Description |
---|---|
System.Linq.ILookup<System.Object, ScheduleItemResourceConnection> |
Items
Gets the System.Collections.ObjectModel.ObservableCollection<T> of IScheduleItems used as
Declaration
public ObservableCollection<IScheduleItem> Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<IScheduleItem> |
MenuItems
Declaration
public ObservableCollection<IScheduleViewMenuItem> MenuItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<IScheduleViewMenuItem> |
RadContextMenu
Gets the RadContextMenu instance holding the context menu for this instance.
Declaration
public RadContextMenu RadContextMenu { get; }
Property Value
Type | Description |
---|---|
RadContextMenu |
RibbonContextController
Gets or sets the RibbonContextController used by this instance.
Declaration
public RibbonContextController RibbonContextController { get; set; }
Property Value
Type | Description |
---|---|
RibbonContextController |
Methods
| Improve this Doc View SourceAddResourceType(IScheduleResourceType, Nullable<Int32>)
Adds an
Declaration
public void AddResourceType(IScheduleResourceType resourceType, int? index = null)
Parameters
Type | Name | Description |
---|---|---|
IScheduleResourceType | resourceType | The |
System.Nullable<System.Int32> | index | A System.Nullable<T> System.Int32 representing the index of that item in both the |
AddScheduleItem<T>(T, Boolean)
Adds a single IScheduleItem to the Items collection, optionally automatically setting it's connected resources via the information provided in the ConnectionsDict.
Declaration
public void AddScheduleItem<T>(T scheduleItem, bool autoconnect = true)
where T : IScheduleItem
Parameters
Type | Name | Description |
---|---|---|
T | scheduleItem | The IScheduleItem to add. |
System.Boolean | autoconnect | A System.Boolean value indicating whether the resources of the given item should be set automatically via the information provided in the ConnectionsDict. (Default: true) |
Type Parameters
Name | Description |
---|---|
T |
AddScheduleItems<T>(IEnumerable<T>, Boolean)
Adds IScheduleItems to the Items collection.
Declaration
public void AddScheduleItems<T>(IEnumerable<T> scheduleItems, bool clearFirst = false)
where T : IScheduleItem
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | scheduleItems | An System.Collections.Generic.IEnumerable<T> holding the IScheduleItems to add. |
System.Boolean | clearFirst | A System.Boolean value indicating whether the Items collection should be cleared before adding the new items. (Default: false) |
Type Parameters
Name | Description |
---|---|
T |
AddScheduleResources(IEnumerable<IScheduleResource>)
Adds IScheduleResources to the Simplic.UI.ScheduleView.ScheduleViewControl.ResourceTypesDict and calls
Declaration
public void AddScheduleResources(IEnumerable<IScheduleResource> scheduleResources)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IScheduleResource> | scheduleResources | The System.Collections.Generic.IEnumerable<T> of IScheduleResource items to add. |
ClearConnectionsDict(Boolean)
Clears the ConnectionsDict, optionally also clearing the resources of all items in Items. A System.Boolean indicating whether the resources of all items in Items should also be cleared. (Default: true)
Declaration
public void ClearConnectionsDict(bool clearItemResources = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | clearItemResources |
ClearResourceTypesAndGroupDescriptionSource()
Clears the
Declaration
public void ClearResourceTypesAndGroupDescriptionSource()
Dispose()
See System.IDisposable.Dispose().
Declaration
public virtual void Dispose()
SetConfiguration(ScheduleViewConfigurationModel)
Applies the ScheduleViewConfigurationModel to the instance.
Declaration
public void SetConfiguration(ScheduleViewConfigurationModel config)
Parameters
Type | Name | Description |
---|---|---|
ScheduleViewConfigurationModel | config | An ScheduleViewConfigurationModel instance to apply. |
SetConnections(IEnumerable<ScheduleItemResourceConnection>)
Sets the available connections.
Declaration
public void SetConnections(IEnumerable<ScheduleItemResourceConnection> connections)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ScheduleItemResourceConnection> | connections |