Search Results for

    Show / Hide Table of Contents

    Class ScheduleViewControl

    Simplic-extension of the . All simplic ScheduleViews should derive from this, or directly implement this schedule view. It provides all base functionality a simplic ScheduleView should provide.

    Inheritance
    System.Object
    ScheduleViewControl
    Implements
    System.IDisposable
    Namespace: Simplic.UI.ScheduleView
    Assembly: Simplic.UI.dll
    Syntax
    public class ScheduleViewControl : RadScheduleView, IDisposable

    Constructors

    | Improve this Doc View Source

    ScheduleViewControl()

    Initializes a new instance of the ScheduleViewControl class.

    Declaration
    public ScheduleViewControl()

    Properties

    | Improve this Doc View Source

    ConnectionsDict

    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>
    | Improve this Doc View Source

    Items

    Gets the System.Collections.ObjectModel.ObservableCollection<T> of IScheduleItems used as of the underlying .

    Declaration
    public ObservableCollection<IScheduleItem> Items { get; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<IScheduleItem>
    | Improve this Doc View Source

    MenuItems

    Declaration
    public ObservableCollection<IScheduleViewMenuItem> MenuItems { get; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<IScheduleViewMenuItem>
    | Improve this Doc View Source

    RadContextMenu

    Gets the RadContextMenu instance holding the context menu for this instance.

    Declaration
    public RadContextMenu RadContextMenu { get; }
    Property Value
    Type Description
    RadContextMenu
    | Improve this Doc View Source

    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 Source

    AddResourceType(IScheduleResourceType, Nullable<Int32>)

    Adds an to the collection and (optionally) to the collection.

    Declaration
    public void AddResourceType(IScheduleResourceType resourceType, int? index = null)
    Parameters
    Type Name Description
    IScheduleResourceType resourceType

    The to add to the collection.

    System.Nullable<System.Int32> index

    A System.Nullable<T> System.Int32 representing the index of that item in both the and the . (Default: null)

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    AddScheduleResources(IEnumerable<IScheduleResource>)

    Adds IScheduleResources to the Simplic.UI.ScheduleView.ScheduleViewControl.ResourceTypesDict and calls for each type.

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    ClearResourceTypesAndGroupDescriptionSource()

    Clears the and .

    Declaration
    public void ClearResourceTypesAndGroupDescriptionSource()
    | Improve this Doc View Source

    Dispose()

    See System.IDisposable.Dispose().

    Declaration
    public virtual void Dispose()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    SetConnections(IEnumerable<ScheduleItemResourceConnection>)

    Sets the available connections.

    Declaration
    public void SetConnections(IEnumerable<ScheduleItemResourceConnection> connections)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<ScheduleItemResourceConnection> connections

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx