Repository navigation
Expand file tree
/
Copy pathNotesDataType.cs
More file actions
64 lines (58 loc) · 1.79 KB
/
Copy pathNotesDataType.cs
File metadata and controls
64 lines (58 loc) · 1.79 KB
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
54
55
56
57
58
59
60
61
62
63
64
using System;
using umbraco.cms.businesslogic.datatype;
using umbraco.interfaces;
namespace uComponents.DataTypes.Notes
{
/// <summary>
/// A Notes data-type for Umbraco
/// </summary>
public class NotesDataType : AbstractDataEditor
{
/// <summary>
/// The PreValue Editor for the data-type.
/// </summary>
private NotesPrevalueEditor m_PreValueEditor;
/// <summary>
/// The Data Editor for the data-type.
/// </summary>
private NotesDataEditor m_DataEditor;
/// <summary>
/// Gets the id of the data-type.
/// </summary>
/// <value>The id of the data-type.</value>
public override Guid Id
{
get
{
return new Guid(DataTypeConstants.NotesId);
}
}
/// <summary>
/// Gets the name of the data type.
/// </summary>
/// <value>The name of the data type.</value>
public override string DataTypeName
{
get
{
return "uComponents: Notes";
}
}
/// <summary>
/// Gets the prevalue editor.
/// </summary>
/// <value>The prevalue editor.</value>
public override IDataPrevalue PrevalueEditor
{
get { return this.m_PreValueEditor ?? (this.m_PreValueEditor = new NotesPrevalueEditor(this)); }
}
/// <summary>
/// Gets the prevalue editor.
/// </summary>
/// <value>The prevalue editor.</value>
public override IDataEditor DataEditor
{
get { return this.m_DataEditor ?? (this.m_DataEditor = new NotesDataEditor(((NotesPrevalueEditor)this.PrevalueEditor).GetPreValueOptions<NotesOptions>())); }
}
}
}