DescStatsBoxNet

Inheritance Hierarchy

          UserControl

          ...

          ControlWithBorderStyle

          UiControlWithForeContextMenu

          DescStatsBoxNet

Description

The DescStatsBoxNet component is a .NET analog of the DescStatsBox component. These are panels containing settings required for calculation of descriptive statistics.

Working with the Component

The component is set up using the Fore.NET language. To use the component, specify the container containing required modeling variables in the ModelSpace property. To get parameters of component toolbox, get context of the Fore component using the CtrlBox property. One can further set up the component in the same way as the DescStatsBox component (see component description).

Example

The code that is used to set up parameters of the specified DescStatsBoxNet component:

The repository should include a modeling container with the MODEL_SPACE identifier. This container includes modeling variables with the X1 and X2 identifiers.

Imports Prognoz.Platform.Forms.NET;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.Ms;

Sub AdjustDescStatsBoxNet(DSBox: DescStatsBoxNet);
Var
    MB: IMetabase;
    MS, VarObj: IMetabaseObjectDescriptor;
Begin
    MB := DSBox.Metabase;
    MS := MB.ItemById["MODEL_SPACE"];
    DSBox.ModelSpace := MS.Bind() As IMsModelSpace;
    VarObj := MB.ItemByIdNamespace["X1", MS.Key];
    DSBox.CtrlBox.AddVariableStub(VarObj.Bind() As IVariableStub);
    VarObj := MB.ItemByIdNamespace["X2", MS.Key];
    DSBox.CtrlBox.AddVariableStub(VarObj.Bind() As IVariableStub);
End Sub;

See also:

Components of Access to .NET Data | DescStatsBox