Fore forms created in repository can be started from the developed code. To enable this feature, add links to the following assemblies in the project:
Assemblies required to start all the forms and assemblies:
Prognoz.Fore.
Prognoz.Platform.Interop.Metabase.
Prognoz.Platform.Interop.Ui.
Execute the following method before starting forms in the code:
Prognoz.P5.Interop.Ui.IUiWinApplication.CheckAfxState: this method initializes system variables of the analytics platform required to ensure correct performance of objects.
Execute this method once before some form is started for the first time.
To start a Fore form, execute the following method for the respective repository object: Open, or OpenWithParam:
IMetabaseObjectDescriptor ForeForm = Mb.ItemById["TestForm"];
ForeForm.Open(ForeForm.Params.CreateEmptyValues());
See also: