Opens a standard dialog box that is used to change password of the current user.
Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:
Value type | Description |
IMetabase | The repository, in which the current user password must be changed. |
None
Executing the example requires a form with the Button1 button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Target: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Begin
Target := WinApplication.Instance.GetPluginTarget("Adm");
Context := Target.CreateExecutionContext;
Context.Data := MetabaseClass.Active;
Target.Execute("ChangePassword", Context);
End Sub Button1OnClick;
Clicking the button opens a standard dialog box that is used to change password for the current user.
The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Ui;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
WinApp: WinApplication = New WinApplicationClass_2();
Target: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Begin
Target := WinApp.GetPluginTarget("Adm");
Context := Target.CreateExecutionContext();
Context.Data := Self.Metabase;
Target.Execute("ChangePassword", Context, Null);
End Sub;
See also: