IsRegistered(Laner: ILaner): Boolean;
Laner. Workbook of the time series database in series mode.
The IsRegistered method returns whether workbook is registered in the context. True - the workbook is registered, False - the workbook is not registered.
Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. Working area of the time series database must be loaded to UiErAnalyzer1.
Click the button to start executing the example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
pContext: ILanerContext;
Laner: ILaner;
Begin
pContext := New LanerContext.Create;
Laner := UiErAnalyzer1.ErAnalyzer.Laner;
If Not pContext.IsRegistered Then
pContext.Register(Laner);
End If;
End Sub Button1OnClick;
After executing the example the working area of the time series database is registered in context of the time series database, if it has not yet been registered there.
See also: