Opens a dialog box for repository connection.
None
If a repository connection using account data specified in the dialog box is successful, the Execute method returns True, otherwise it returns False. If a startup object is selected for the repository, this object is started after successful connection.
Executing the example requires a form and a button named Button1 on the form.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Target: IUiCommandTarget;
Result: Boolean;
Begin
Target := WinApplication.Instance.GetPluginTarget("Std");
Result := Target.Execute("OpenLoginDialog", Null);
End Sub Button1OnClick;
Clicking the button opens a dialog box for repository connection. The Result variable will contain connection results.
Executing the example requires a form and a button named Button1 on the form.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Fore;
Imports Prognoz.Platform.Interop.Ui;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
WinAppCls: WinApplicationClassClass = New WinApplicationClassClass();
Svc: IForeServices;
RunContext: ForeRuntimeContext;
Target: IUiCommandTarget;
Result: Boolean;
Begin
Svc := Self.Metabase As IForeServices;
RunContext := Svc.GetRuntime().Context;
Target := WinAppCls.Instance[RunContext].GetPluginTarget("Std");
Result := Target.Execute("OpenLoginDialog", Null, RunContext) As boolean;
End Sub;
Clicking the button opens a dialog box for repository connection. The Result variable will contain connection results.
See also: