T
Tobias Johansson
Hi,
I am developing a C# component for technical analysis of stock data.
Currently, the component provides its own functionality for data
binding which makes it very easy to modify settings at runtime for
different objects in the component. The following code shows how this
is done.
// fill a ObjectSettings object with the variables which should be
modified at runtime
override public void GetSettings(ObjectSettings settings)
{
settings.AddInt("movingAverage", 50, "Moving Average", "The number
of days the moving average is based on");
}
// load the changed variables
override public void LoadSettings(ObjectSettings settings)
{
movingAverage = settings.GetInt("movingAverage");
}
My question is, could I do the same thing by using the data binding
functionality provided by .NET? How is this done then? My component is
not based on Windows Controls but i guess that will make no
difference.
Cheers
Tobias Johansson
I am developing a C# component for technical analysis of stock data.
Currently, the component provides its own functionality for data
binding which makes it very easy to modify settings at runtime for
different objects in the component. The following code shows how this
is done.
// fill a ObjectSettings object with the variables which should be
modified at runtime
override public void GetSettings(ObjectSettings settings)
{
settings.AddInt("movingAverage", 50, "Moving Average", "The number
of days the moving average is based on");
}
// load the changed variables
override public void LoadSettings(ObjectSettings settings)
{
movingAverage = settings.GetInt("movingAverage");
}
My question is, could I do the same thing by using the data binding
functionality provided by .NET? How is this done then? My component is
not based on Windows Controls but i guess that will make no
difference.
Cheers
Tobias Johansson