コード例 #1
0
 public void SetAll(HttpTransportCollection httpData)
 {
     if (httpData != null)
     {
         cachedCollection = httpData;
     }
 }
コード例 #2
0
        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();
        }
コード例 #3
0
        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;
 }
コード例 #5
0
 public HttpTransportService(IServiceConfigManager serviceConfigManager)
 {
     cachedCollection      = new HttpTransportCollection(5000);
     _serviceConfigManager = serviceConfigManager;
 }
コード例 #6
0
 public HttpTransportService()
 {
     cachedCollection = new HttpTransportCollection(5000);
 }
コード例 #7
0
 public HttpTransportCollectionPropertyDescriptor(HttpTransportCollection coll, int idx) : base("#" + idx.ToString(), null)
 {
     this.collection = coll;
     this.index      = idx;
 }