Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
MockPlugin.SampleListColumns.MyDateEditor Class Reference

Just unwrap and edit the inner DateTime. More...

+ Inheritance diagram for MockPlugin.SampleListColumns.MyDateEditor:
+ Collaboration diagram for MockPlugin.SampleListColumns.MyDateEditor:

Public Member Functions

override object EditValue (ITypeDescriptorContext context, IServiceProvider provider, object value)
 

Detailed Description

Just unwrap and edit the inner DateTime.

Definition at line 116 of file DateColumn.cs.

Member Function Documentation

◆ EditValue()

override object MockPlugin.SampleListColumns.MyDateEditor.EditValue ( ITypeDescriptorContext context,
IServiceProvider provider,
object value )

Definition at line 118 of file DateColumn.cs.

119 {
120 if (value is MyDate mdt)
121 {
122 // ReSharper disable once PossibleNullReferenceException
123 return new MyDate((DateTime)base.EditValue(context, provider, mdt.DateTime));
124 }
125 return base.EditValue(context, provider, value);
126 }

The documentation for this class was generated from the following file: