Boolean Execute(TValueRec value)
Shows the variable editor.
| # | Name | Description |
|---|---|---|
| 1 | value | Variable to be edited |
Returns: Boolean - True, if modal result is DialogResult.OK.
Examples
using Dew.Math;
using Dew.Math.Units;
using Dew.Math.Editors;
namespace Dew.Examples
{
private void Example(TNamedVariable var)
{
VariableEditor edt = new VariableEditor();
edt.Text = "Editing " + v.VarName;
if (edt.Execute(v.ValueRecord))
{
Console.Write("Applied changes to variable!");
}
}
}