Method TryGetSupplierOfCurrentSiteFromCatalogFilename
TryGetSupplierOfCurrentSiteFromCatalogFilename(string, out Supplier)
Finds a supplier to which the given catalog is attached in the list of the suppliers registered in the KitchenDraw software for the site to which the current user belongs.
Declaration
public bool TryGetSupplierOfCurrentSiteFromCatalogFilename(string catalogFilename, out Appli.Supplier matchingSupplier)
Parameters
Type | Name | Description |
---|---|---|
string | catalogFilename | Filename of a catalog to find (without a path or extension). |
Appli.Supplier | matchingSupplier | When the method completes, this
parameter holds first matching supplier, or |
Returns
Type | Description |
---|---|
bool |
|
Remarks
The supplier is searched in the list of registered suppliers for the site to which the current user belongs. If the catalog is assigned to multiple suppliers (which should not be the case), then the first supplier encountered in the list whose rank will be returned.