C# Класс SobekCM.Core.Settings.DbItemViewers.DbItemViewerTypes

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Add_ViewerType ( int ID, string ViewType, int Order, bool DefaultView, decimal MenuOrder ) : void

Adds a new item viewer config, from the database, to the list of possible item viewers

DbItemViewerTypes ( ) : System

Constructor for a new instance of the DbItemViewerTypes class

Get_ViewerType ( string ViewerCode ) : DbItemViewerType

Get the viewer code information from the database, by viewer code

Описание методов

Add_ViewerType() публичный Метод

Adds a new item viewer config, from the database, to the list of possible item viewers
public Add_ViewerType ( int ID, string ViewType, int Order, bool DefaultView, decimal MenuOrder ) : void
ID int Primary key to this item viewer from the database which is used /// to link an item, in the database, to this viewer
ViewType string Code for this view type, which is returned with each digital resource /// and links, via the UI configuration, to the class used to display this item /// within the user interface
Order int Default order, relative to the order on the other item viewers, that this /// should be displayed
DefaultView bool Flag indicates if this view should be automatically added to all new items /// that are added to the database
MenuOrder decimal Default order this viewer should be displayed on the item viewer menu
Результат void

DbItemViewerTypes() публичный Метод

Constructor for a new instance of the DbItemViewerTypes class
public DbItemViewerTypes ( ) : System
Результат System

Get_ViewerType() публичный Метод

Get the viewer code information from the database, by viewer code
public Get_ViewerType ( string ViewerCode ) : DbItemViewerType
ViewerCode string The viewer code.
Результат DbItemViewerType