Interface IUOLClientControls
Provides UOL SDK controls, such as dialogs that can be used to interact with the UOL platform.
Namespace: UOL.SDK.Controls
Assembly: UOL.SDK.Controls.dll
Syntax
public interface IUOLClientControls
Methods
Logout()
Logs out the active user.
Declaration
void Logout()
Examples
Call this method to log out the active user:
uolClientControls.Logout();
ShowEtimClassPickerDialog()
Shows the ETIM class picker dialog. Use this dialog to have end-users pick an ETIM and ETIM MC class code.
Declaration
EtimPickerDialogResult ShowEtimClassPickerDialog()
Returns
Type | Description |
---|---|
Etim |
A Etim |
Examples
Call this method to start the UOL Search site within a forms application:
var dialogResult = uolClientControls.ShowEtimClassPickerDialog();
var filterResult = dialogResult.CADFilterResult;
ShowEtimClassPickerDialog(String)
Shows the ETIM class picker dialog. Use this dialog to have end-users pick an ETIM and ETIM MC class code.
Declaration
EtimPickerDialogResult ShowEtimClassPickerDialog(string caption)
Parameters
Type | Name | Description |
---|---|---|
System. |
caption | A string providing the caption for the dialog. |
Returns
Type | Description |
---|---|
Etim |
A Etim |
Examples
Call this method to start the UOL Search site within a forms application:
var dialogResult = uolClientControls.ShowEtimClassPickerDialog("Test UOL");
var filterResult = dialogResult.CADFilterResult;
ShowEtimClassPickerDialog(IWin32Window)
Shows the ETIM class picker dialog with the specified owner. Use this dialog to have end-users pick an ETIM and ETIM MC class code.
Declaration
EtimPickerDialogResult ShowEtimClassPickerDialog(IWin32Window owner)
Parameters
Type | Name | Description |
---|---|---|
System. |
owner | Any object that implements System.Windows.Forms.IWin32Window that represents the top-level window that will own the modal dialog box. |
Returns
Type | Description |
---|---|
Etim |
A Etim |
Examples
Call this method to start the UOL Search site within a forms application:
var dialogResult = uolClientControls.ShowEtimClassPickerDialog(this);
var filterResult = dialogResult.CADFilterResult;
Exceptions
Type | Condition |
---|---|
System. |
The form specified in the owner parameter is the same as the form being shown. |
System. |
The form being shown is already visible.-or- The form being shown is disabled.-or-
The form being shown is not a top-level window.-or- The form being shown as a
dialog box is already a modal form.-or-The current process is not running in
user interactive mode (for more information, see
System. |
ShowEtimClassPickerDialog(IWin32Window, String)
Shows the ETIM class picker dialog with the specified owner. Use this dialog to have end-users pick an ETIM and ETIM MC class code.
Declaration
EtimPickerDialogResult ShowEtimClassPickerDialog(IWin32Window owner, string caption)
Parameters
Type | Name | Description |
---|---|---|
System. |
owner | Any object that implements System.Windows.Forms.IWin32Window that represents the top-level window that will own the modal dialog box. |
System. |
caption | A string providing the caption for the dialog. |
Returns
Type | Description |
---|---|
Etim |
A Etim |
Examples
Call this method to start the UOL Search site within a forms application:
var dialogResult = uolClientControls.ShowEtimClassPickerDialog(this, "Test UOL");
var filterResult = dialogResult.CADFilterResult;
Exceptions
Type | Condition |
---|---|
System. |
The form specified in the owner parameter is the same as the form being shown. |
System. |
The form being shown is already visible.-or- The form being shown is disabled.-or-
The form being shown is not a top-level window.-or- The form being shown as a
dialog box is already a modal form.-or-The current process is not running in
user interactive mode (for more information, see
System. |
ShowLoginDialog()
Shows a Login dialog where end-users can sign-in with their UOL account.
Declaration
LoginDialogResult ShowLoginDialog()
Returns
Type | Description |
---|---|
Login |
A Login |
Examples
Call this method to start the UOL Login dialog within a forms application:
var dialogResult = uolClientControls.ShowLoginDialog();
var authorizationCode = dialogResult.AuthorizationCode;
ShowLoginDialog(String)
Shows a Login dialog where end-users can sign-in with their UOL account.
Declaration
LoginDialogResult ShowLoginDialog(string caption)
Parameters
Type | Name | Description |
---|---|---|
System. |
caption | A string providing the caption for the dialog. |
Returns
Type | Description |
---|---|
Login |
A Login |
Examples
Call this method to start the UOL Login dialog within a forms application:
var dialogResult = uolClientControls.ShowLoginDialog("Test Login");
var authorizationCode = dialogResult.AuthorizationCode;
ShowLoginDialog(IWin32Window)
Shows a Login dialog where end-users can sign-in with their UOL account.
Declaration
LoginDialogResult ShowLoginDialog(IWin32Window owner)
Parameters
Type | Name | Description |
---|---|---|
System. |
owner | Any object that implements System.Windows.Forms.IWin32Window that represents the top-level window that will own the modal dialog box. |
Returns
Type | Description |
---|---|
Login |
A Login |
Examples
Call this method to start the UOL Login dialog within a forms application:
var dialogResult = uolClientControls.ShowLoginDialog(this);
var authorizationCode = dialogResult.AuthorizationCode;
Exceptions
Type | Condition |
---|---|
System. |
The form specified in the owner parameter is the same as the form being shown. |
System. |
The form being shown is already visible.-or- The form being shown is disabled.-or-
The form being shown is not a top-level window.-or- The form being shown as a
dialog box is already a modal form.-or-The current process is not running in
user interactive mode (for more information, see
System. |
ShowLoginDialog(IWin32Window, String)
Shows a Login dialog where end-users can sign-in with their UOL account.
Declaration
LoginDialogResult ShowLoginDialog(IWin32Window owner, string caption)
Parameters
Type | Name | Description |
---|---|---|
System. |
owner | Any object that implements System.Windows.Forms.IWin32Window that represents the top-level window that will own the modal dialog box. |
System. |
caption | A string providing the caption for the dialog. |
Returns
Type | Description |
---|---|
Login |
A Login |
Examples
Call this method to start the UOL Login dialog within a forms application:
var dialogResult = uolClientControls.ShowLoginDialog(this, "Test Login");
var authorizationCode = dialogResult.AuthorizationCode;
Exceptions
Type | Condition |
---|---|
System. |
The form specified in the owner parameter is the same as the form being shown. |
System. |
The form being shown is already visible.-or- The form being shown is disabled.-or-
The form being shown is not a top-level window.-or- The form being shown as a
dialog box is already a modal form.-or-The current process is not running in
user interactive mode (for more information, see
System. |
ShowUOLEditDialog(IEnumerable<CADFilterResult>)
Shows the UOL edit dialog. Use this dialog to have end-users edit product data.
Declaration
UOLEditDialogResult ShowUOLEditDialog(IEnumerable<CADFilterResult> filters)
Parameters
Type | Name | Description |
---|---|---|
System. |
filters | The filters to use to get the right product. |
Returns
Type | Description |
---|---|
UOLEdit |
A UOLEdit |
ShowUOLEditDialog(IEnumerable<CADFilterResult>, String)
Shows the UOL edit dialog. Use this dialog to have end-users edit product data.
Declaration
UOLEditDialogResult ShowUOLEditDialog(IEnumerable<CADFilterResult> filters, string caption)
Parameters
Type | Name | Description |
---|---|---|
System. |
filters | The filters to use to get the right product. |
System. |
caption | A string providing the caption for the dialog. |
Returns
Type | Description |
---|---|
UOLEdit |
A UOLEdit |
Examples
Call this method to open the Edit Dialog of the UOL site:
var dialogResult = uolClientControls.ShowUOLEditDialog(new List<CADFilterResult>() { cadFilterResult }, "Test Edit");
var numberOfProducts = dialogResult.CADFilterResult.CADProducts.Count();
ShowUOLEditDialog(IEnumerable<CADFilterResult>, IWin32Window)
Shows the UOL edit dialog with the specified owner. Use this dialog to have end-users edit product data.
Declaration
UOLEditDialogResult ShowUOLEditDialog(IEnumerable<CADFilterResult> filters, IWin32Window owner)
Parameters
Type | Name | Description |
---|---|---|
System. |
filters | The filters to use to get the right product. |
System. |
owner | Any object that implements System.Windows.Forms.IWin32Window that represents the top-level window that will own the modal dialog box. |
Returns
Type | Description |
---|---|
UOLEdit |
A UOLEdit |
Examples
Call this method to open the Edit Dialog of the UOL site:
var dialogResult = uolClientControls.ShowUOLEditDialog(new List<CADFilterResult>() { cadFilterResult }, this);
var numberOfProducts = dialogResult.CADFilterResult.CADProducts.Count();
Exceptions
Type | Condition |
---|---|
System. |
The form specified in the owner parameter is the same as the form being shown. |
System. |
The form being shown is already visible.-or- The form being shown is disabled.-or-
The form being shown is not a top-level window.-or- The form being shown as a
dialog box is already a modal form.-or-The current process is not running in
user interactive mode (for more information, see
System. |
ShowUOLEditDialog(IEnumerable<CADFilterResult>, IWin32Window, String)
Shows the UOL edit dialog with the specified owner. Use this dialog to have end-users edit product data.
Declaration
UOLEditDialogResult ShowUOLEditDialog(IEnumerable<CADFilterResult> filters, IWin32Window owner, string caption)
Parameters
Type | Name | Description |
---|---|---|
System. |
filters | The filters to use to get the right product. |
System. |
owner | Any object that implements System.Windows.Forms.IWin32Window that represents the top-level window that will own the modal dialog box. |
System. |
caption | A string providing the caption for the dialog. |
Returns
Type | Description |
---|---|
UOLEdit |
A UOLEdit |
Examples
Call this method to open the Edit Dialog of the UOL site:
var dialogResult = uolClientControls.ShowUOLEditDialog(new List<CADFilterResult>() { cadFilterResult }, this, "Test Edit");
var numberOfProducts = dialogResult.CADFilterResult.CADProducts.Count();
Exceptions
Type | Condition |
---|---|
System. |
The form specified in the owner parameter is the same as the form being shown. |
System. |
The form being shown is already visible.-or- The form being shown is disabled.-or-
The form being shown is not a top-level window.-or- The form being shown as a
dialog box is already a modal form.-or-The current process is not running in
user interactive mode (for more information, see
System. |