|
Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
Just a primitive UI Type Editor to demonstrate how you can add an editor of your own for connection strings. More...
Inheritance diagram for MockPlugin.Device.ConnectionEditor:
Collaboration diagram for MockPlugin.Device.ConnectionEditor:Public Member Functions | |
| override UITypeEditorEditStyle | GetEditStyle (ITypeDescriptorContext context) |
| We want to show a modal dialog box. | |
| override object | EditValue (ITypeDescriptorContext context, IServiceProvider provider, object value) |
| Create your editor form, initialize it from the given value, return if the user accepted the new value. | |
Just a primitive UI Type Editor to demonstrate how you can add an editor of your own for connection strings.
Definition at line 14 of file ConnectionEditor.cs.
| override object MockPlugin.Device.ConnectionEditor.EditValue | ( | ITypeDescriptorContext | context, |
| IServiceProvider | provider, | ||
| object | value ) |
Create your editor form, initialize it from the given value, return if the user accepted the new value.
| context | The context.Instance is the device. If the configuration has not been saved, this could be a disposed temporary object, but you can still get its type. This can be helpful if you want to reuse the same editor with minor runtime modifications for different device types. |
| provider | |
| value |
Definition at line 38 of file ConnectionEditor.cs.
| override UITypeEditorEditStyle MockPlugin.Device.ConnectionEditor.GetEditStyle | ( | ITypeDescriptorContext | context | ) |
We want to show a modal dialog box.
| context |
Definition at line 23 of file ConnectionEditor.cs.