MessageViewModel - конструктор |
Пространство имён:
Tessa.UI.Controls.Forums
Сборка:
Tessa.UI (в Tessa.UI.dll) Версия: 3.5.0.19
Синтаксис public MessageViewModel(
ForumViewModel forumViewModel,
MessageModelBase model,
UserStatusModel userStat,
bool fromTopicControl = false,
bool isVisibleEdit = false,
bool isVisibleReply = false,
Func<MessageViewModelBase, CancellationToken, Task> replyAction = null,
Func<MessageViewModelBase, CancellationToken, Task> editAction = null,
Func<MessageViewModelBase, CancellationToken, Task> getLinkAction = null
)
Public Sub New (
forumViewModel As ForumViewModel,
model As MessageModelBase,
userStat As UserStatusModel,
Optional fromTopicControl As Boolean = false,
Optional isVisibleEdit As Boolean = false,
Optional isVisibleReply As Boolean = false,
Optional replyAction As Func(Of MessageViewModelBase, CancellationToken, Task) = Nothing,
Optional editAction As Func(Of MessageViewModelBase, CancellationToken, Task) = Nothing,
Optional getLinkAction As Func(Of MessageViewModelBase, CancellationToken, Task) = Nothing
)
public:
MessageViewModel(
ForumViewModel^ forumViewModel,
MessageModelBase^ model,
UserStatusModel^ userStat,
bool fromTopicControl = false,
bool isVisibleEdit = false,
bool isVisibleReply = false,
Func<MessageViewModelBase^, CancellationToken, Task^>^ replyAction = nullptr,
Func<MessageViewModelBase^, CancellationToken, Task^>^ editAction = nullptr,
Func<MessageViewModelBase^, CancellationToken, Task^>^ getLinkAction = nullptr
)
new :
forumViewModel : ForumViewModel *
model : MessageModelBase *
userStat : UserStatusModel *
?fromTopicControl : bool *
?isVisibleEdit : bool *
?isVisibleReply : bool *
?replyAction : Func<MessageViewModelBase, CancellationToken, Task> *
?editAction : Func<MessageViewModelBase, CancellationToken, Task> *
?getLinkAction : Func<MessageViewModelBase, CancellationToken, Task>
(* Defaults:
let _fromTopicControl = defaultArg fromTopicControl false
let _isVisibleEdit = defaultArg isVisibleEdit false
let _isVisibleReply = defaultArg isVisibleReply false
let _replyAction = defaultArg replyAction null
let _editAction = defaultArg editAction null
let _getLinkAction = defaultArg getLinkAction null
*)
-> MessageViewModel
Параметры
- forumViewModel
- Тип: Tessa.UI.Controls.ForumsForumViewModel
- model
- Тип: Tessa.Forums.ModelsMessageModelBase
- userStat
- Тип: Tessa.Forums.ForumNotification.ModelsUserStatusModel
- fromTopicControl (Optional)
- Тип: SystemBoolean
- isVisibleEdit (Optional)
- Тип: SystemBoolean
- isVisibleReply (Optional)
- Тип: SystemBoolean
- replyAction (Optional)
- Тип: SystemFuncMessageViewModelBase, CancellationToken, Task
- editAction (Optional)
- Тип: SystemFuncMessageViewModelBase, CancellationToken, Task
- getLinkAction (Optional)
- Тип: SystemFuncMessageViewModelBase, CancellationToken, Task
См. также