Each procedure that performs loading or initialization should first call the ComponentEditorPage.EnterLoadingMode method to indicate that it will load something before the editor can display the loaded editor page. When a loading procedure that called ComponentEditorPage.EnterLoadingMode completes, it should call the ComponentEditorPage.ExitLoadingMode method to indicate that its part of the load process is completed.
The ComponentEditorPage.Loading property is used as a counter to determine when loading is complete. A page is in loading mode if the value of the ComponentEditorPage.Loading property is non-zero.