1
- using System ;
2
- using System . Globalization ;
3
- using Newtonsoft . Json . Linq ;
1
+ using Newtonsoft . Json . Linq ;
4
2
using Skybrud . ImagePicker . Grid . Config ;
5
3
using Skybrud . ImagePicker . Grid . Values ;
6
4
using Skybrud . Umbraco . GridData ;
5
+ using Skybrud . Umbraco . GridData . Converters ;
7
6
using Skybrud . Umbraco . GridData . Interfaces ;
8
7
using Skybrud . Umbraco . GridData . Rendering ;
9
8
@@ -12,15 +11,15 @@ namespace Skybrud.ImagePicker.Grid.Converters {
12
11
/// <summary>
13
12
/// Grid converter for the ImagePicker.
14
13
/// </summary>
15
- public class ImagePickerGridConverter : IGridConverter {
14
+ public class ImagePickerGridConverter : GridConverterBase {
16
15
17
16
/// <summary>
18
- /// Converts the specified <code> token</code > into an instance of <see cref="IGridControlValue"/>.
17
+ /// Converts the specified <paramref name=" token"/ > into an instance of <see cref="IGridControlValue"/>.
19
18
/// </summary>
20
19
/// <param name="control">A reference to the parent <see cref="GridControl"/>.</param>
21
20
/// <param name="token">The instance of <see cref="JToken"/> representing the control value.</param>
22
21
/// <param name="value">The converted control value.</param>
23
- public bool ConvertControlValue ( GridControl control , JToken token , out IGridControlValue value ) {
22
+ public override bool ConvertControlValue ( GridControl control , JToken token , out IGridControlValue value ) {
24
23
value = null ;
25
24
if ( IsImagePickerEditor ( control . Editor ) ) {
26
25
value = GridControlImagePickerValue . Parse ( control , token as JObject ) ;
@@ -29,12 +28,12 @@ public bool ConvertControlValue(GridControl control, JToken token, out IGridCont
29
28
}
30
29
31
30
/// <summary>
32
- /// Converts the specified <code> token</code > into an instance of <see cref="IGridEditorConfig"/>.
31
+ /// Converts the specified <paramref name=" token"/ > into an instance of <see cref="IGridEditorConfig"/>.
33
32
/// </summary>
34
33
/// <param name="editor">A reference to the parent <see cref="GridEditor"/>.</param>
35
34
/// <param name="token">The instance of <see cref="JToken"/> representing the editor config.</param>
36
35
/// <param name="config">The converted editor config.</param>
37
- public bool ConvertEditorConfig ( GridEditor editor , JToken token , out IGridEditorConfig config ) {
36
+ public override bool ConvertEditorConfig ( GridEditor editor , JToken token , out IGridEditorConfig config ) {
38
37
config = null ;
39
38
if ( IsImagePickerEditor ( editor ) ) {
40
39
config = GridEditorImagePickerConfig . Parse ( editor , token as JObject ) ;
@@ -43,11 +42,11 @@ public bool ConvertEditorConfig(GridEditor editor, JToken token, out IGridEditor
43
42
}
44
43
45
44
/// <summary>
46
- /// Gets an instance <see cref="GridControlWrapper"/> for the specified <code> control</code >.
45
+ /// Gets an instance <see cref="GridControlWrapper"/> for the specified <paramref name=" control"/ >.
47
46
/// </summary>
48
47
/// <param name="control">The control to be wrapped.</param>
49
48
/// <param name="wrapper">The wrapper.</param>
50
- public bool GetControlWrapper ( GridControl control , out GridControlWrapper wrapper ) {
49
+ public override bool GetControlWrapper ( GridControl control , out GridControlWrapper wrapper ) {
51
50
wrapper = null ;
52
51
if ( IsImagePickerEditor ( control . Editor ) ) {
53
52
wrapper = control . GetControlWrapper < GridControlImagePickerValue , GridEditorImagePickerConfig > ( ) ;
0 commit comments