Example #1
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();
            var httpTransportCollection = SnapInContext.Instance.ServiceGateway.HttpTransport.GetAll();

            httpTransportCollection.Sort(SortingOrder.Descending);
            var items = httpTransportCollection.Items.Select(x => new HttpTransportViewData {
                Name = x.RequestUri, Method = x.Method
            }).ToList();

            ReloadTableView(HttpTransportTableView, items, httpTransportCollection);

            if (items.Count > 0)
            {
                HttpTransportTableView.SelectRow(0, false);
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (HttpTransportTableView != null)
            {
                HttpTransportTableView.Dispose();
                HttpTransportTableView = null;
            }

            if (TxtContentLength != null)
            {
                TxtContentLength.Dispose();
                TxtContentLength = null;
            }

            if (TxtContentType != null)
            {
                TxtContentType.Dispose();
                TxtContentType = null;
            }

            if (TxtError != null)
            {
                TxtError.Dispose();
                TxtError = null;
            }

            if (TxtHttpMethod != null)
            {
                TxtHttpMethod.Dispose();
                TxtHttpMethod = null;
            }

            if (TxtReponseContentType != null)
            {
                TxtReponseContentType.Dispose();
                TxtReponseContentType = null;
            }

            if (TxtRequestData != null)
            {
                TxtRequestData.Dispose();
                TxtRequestData = null;
            }

            if (TxtRequestUri != null)
            {
                TxtRequestUri.Dispose();
                TxtRequestUri = null;
            }

            if (TxtResponseContentLength != null)
            {
                TxtResponseContentLength.Dispose();
                TxtResponseContentLength = null;
            }

            if (TxtResponseData != null)
            {
                TxtResponseData.Dispose();
                TxtResponseData = null;
            }

            if (TxtServerName != null)
            {
                TxtServerName.Dispose();
                TxtServerName = null;
            }

            if (TxtTimeTaken != null)
            {
                TxtTimeTaken.Dispose();
                TxtTimeTaken = null;
            }

            if (TxtUserAgent != null)
            {
                TxtUserAgent.Dispose();
                TxtUserAgent = null;
            }

            if (TxtTimestamp != null)
            {
                TxtTimestamp.Dispose();
                TxtTimestamp = null;
            }
        }