OpenLoginDialog Command

Purpose

It opens a dialog box for repository connection.

Parameters of Use

None

Application Features

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.

Example

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.

See also:

IUiCommandTarget.Execute