forked from episerver/EPiServer.Forms.Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFormsSamplesModuleViewModel.cs
53 lines (49 loc) · 1.5 KB
/
FormsSamplesModuleViewModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using EPiServer.Forms.Samples.Implementation.Elements;
using EPiServer.Framework.Web.Resources;
using EPiServer.Shell.Modules;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EPiServer.Forms.Samples
{
/// <summary>
/// ViewModel for working in EditView
/// </summary>
public class FormsSamplesModuleViewModel: ModuleViewModel
{
string _clientResourcePath;
public FormsSamplesModuleViewModel(ShellModule shellModule, IClientResourceService clientResourceService)
: base(shellModule, clientResourceService)
{
_clientResourcePath = shellModule.ClientResourcePath;
}
/// <summary>
/// Returns root (to the version folder level) client resources path of this addon module.
/// </summary>
public string ClientResourcePath
{
get
{
return _clientResourcePath;
}
}
/// <summary>
/// Registered element content types existing in Samples.
/// </summary>
public IEnumerable<Type> RegisteredElementContentTypes
{
get
{
return new Type[]
{
typeof(AddressesElementBlock),
typeof(DateTimeElementBlock),
typeof(DateTimeRangeElementBlock),
typeof(RecaptchaElementBlock)
};
}
}
}
}