-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDynamicsFormPickerPropertyEditor.cs
45 lines (40 loc) · 1.22 KB
/
DynamicsFormPickerPropertyEditor.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
#if NETCOREAPP
using Umbraco.Cms.Core.IO;
using Umbraco.Cms.Core.PropertyEditors;
#else
using Umbraco.Core.Logging;
using Umbraco.Core.PropertyEditors;
#endif
namespace Umbraco.Cms.Integrations.Crm.Dynamics
{
[DataEditor(
alias: "Umbraco.Cms.Integrations.Crm.Dynamics.FormPicker",
name: "Dynamics Form Picker",
view: "~/App_Plugins/UmbracoCms.Integrations/Crm/Dynamics/views/formpicker.html",
Group = "Pickers",
Icon = "icon-handshake",
ValueType = ValueTypes.Json
)]
public class DynamicsFormPickerPropertyEditor : DataEditor
{
#if NETCOREAPP
private readonly IIOHelper _iioHelper;
public DynamicsFormPickerPropertyEditor(IIOHelper iioHelper, IDataValueEditorFactory dataValueEditorFactory) : base(dataValueEditorFactory)
{
_iioHelper = iioHelper;
}
#else
public DynamicsFormPickerPropertyEditor(ILogger logger) : base(logger)
{
}
#endif
protected override IConfigurationEditor CreateConfigurationEditor()
{
#if NETCOREAPP
return new DynamicsFormPickerConfigurationEditor(_iioHelper);
#else
return new DynamicsFormPickerConfigurationEditor();
#endif
}
}
}