UserControl
ControlWithBorderStyle
UiControlWithForeContextMenu
DescStatsBoxNet
![]()
The DescStatsBoxNet component is a .NET analog of the DescStatsBox component. These are panels containing settings required for calculation of descriptive statistics.
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).

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: