public void GetDataTable() { AddLog("Load all DataTables"); try { Dictionary <string, string> ListOfDataTables = new Dictionary <string, string>(); var pageSize = 100; var pageNumber = 1; int itemNumber = 1; var datatableEntityListing = architect.GetFlowsDatatables("", pageNumber, pageSize, "id", "ascending"); foreach (var item in datatableEntityListing.Entities) { _combo.Items.Add(item.Name); ListOfDataTables.Add(item.Id, item.Name); AddLog($"load Datatable {item.Name} #{itemNumber++}/{datatableEntityListing.Total}"); } AddLog($"{datatableEntityListing.Total} Datatable loaded successfully"); } catch (Exception ex) { AddLog($"Error in GetDataTable: {ex.Message}"); MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }