public void SetAll(HttpTransportCollection httpData) { if (httpData != null) { cachedCollection = httpData; } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); var service = ScopeNodeExtensions.GetServiceGateway(); sortingOrder = SortingOrder.Descending; _httpTransportCollection = service.HttpTransport.GetAll(); _httpTransportCollection.Sort(sortingOrder); propGridInput.SelectedObject = _httpTransportCollection; propGridInput.Refresh(); lblItemCount.Text = _httpTransportCollection.Count.ToString(); }
public void ReloadTableView(NSTableView tableView, List <HttpTransportViewData> datasource, HttpTransportCollection collection) { // tableView.Delegate = new TableDelegate (this); // var listView = new HttpTransportDataSource { Entries = datasource }; // tableView.DataSource = listView; // tableView.ReloadData (); foreach (NSTableColumn column in tableView.TableColumns()) { tableView.RemoveColumn(column); } tableView.Delegate = new TableDelegate(this); var listView = new HttpTransportDataSource { Entries = datasource, HttpTransportCollection = collection }; var columnNames = new List <ColumnOptions> { new ColumnOptions { Id = "Method", DisplayName = "", DisplayOrder = 1, Width = 60, Type = ColumnType.Text }, new ColumnOptions { Id = "Name", DisplayName = "Name", DisplayOrder = 2, Width = 400, Type = ColumnType.Text } }; var columns = ListViewHelper.ToNSTableColumns(columnNames); foreach (var column in columns) { tableView.AddColumn(column); } tableView.DataSource = listView; tableView.ReloadData(); }
public HttpTransportCollectionPropertyDescriptor(HttpTransportCollection coll, int idx): base("#" + idx.ToString(), null) { this.collection = coll; this.index = idx; }
public HttpTransportService(IServiceConfigManager serviceConfigManager) { cachedCollection = new HttpTransportCollection(5000); _serviceConfigManager = serviceConfigManager; }
public HttpTransportService() { cachedCollection = new HttpTransportCollection(5000); }
public HttpTransportCollectionPropertyDescriptor(HttpTransportCollection coll, int idx) : base("#" + idx.ToString(), null) { this.collection = coll; this.index = idx; }