/// <summary> /// Displays the header editor. /// </summary> private void DisplaySessionRequestInfoUserControl() { SessionRequest sessionRequest = this.CurrentSessionRequest; headersEditorControl.WebSessionRequest = sessionRequest; headersEditorControl.LoadHeaderEditor(); headersEditorControl.Show(); this.SelectedDesignerControl = headersEditorControl; HideControls(typeof(SessionRequestHeaderEditor)); }
/// <summary> /// Displays the Test Editor. /// </summary> private void DisplayTestEditorUserControl() { SessionRequest sessionRequest = this.CurrentSessionRequest; testManagerControl.WebSessionRequest = sessionRequest; testManagerControl.LoadTestManager(this.InspectorConfig); testManagerControl.Show(); this.SelectedDesignerControl = testManagerControl; HideControls(typeof(SessionWebUnitTestItemEditor)); }
/// <summary> /// Displays the session info panel. /// </summary> private void DisplaySessionInfoUserControl() { SessionRequest sessionRequest = this.CurrentSessionRequest; this.sessionInfoControl.SelectedSession = this.WebSession; this.sessionInfoControl.SetSessionSettings(); this.sessionInfoControl.Show(); this.SelectedDesignerControl = sessionInfoControl; HideControls(typeof(SessionInfoForm)); }
/// <summary> /// Displays the QueryString Editor. /// </summary> private void DisplayQueryStringUserControl() { SessionRequest sessionRequest = this.CurrentSessionRequest; //SessionQueryStringEditor queryStringEditor = (SessionQueryStringEditor)this.pnUserControl.Controls[3]; queryStringControl.Show(); this.SelectedDesignerControl = queryStringControl; HideControls(typeof(SessionQueryStringEditor)); if ( sessionRequest.RequestType == HttpRequestType.GET ) { queryStringControl.QueryString = ((GetSessionRequest)sessionRequest).QueryString; queryStringControl.LoadCurrentView(); } else { queryStringControl.DisplayNoDataMessage(); } }
/// <summary> /// Displays the PostData Editor. /// </summary> private void DisplayPostDataUserControl() { SessionRequest sessionRequest = this.CurrentSessionRequest; //SessionPostDataEditor postDataEditor = (SessionPostDataEditor)this.pnUserControl.Controls[2]; if ( sessionRequest.RequestType == HttpRequestType.POST ) { postDataControl.PostData = ((PostSessionRequest)sessionRequest).PostData; postDataControl.LoadPostData(); } else { postDataControl.DisplayNoDataMessage(); } postDataControl.Show(); this.SelectedDesignerControl = postDataControl; HideControls(typeof(SessionPostDataEditor)); }
/// <summary> /// Displays the Form Editor. /// </summary> private void DisplayFormUserControl() { SessionRequest sessionRequest = this.CurrentSessionRequest; //SessionFormEditor formEditor = (SessionFormEditor)this.pnUserControl.Controls[0]; formControl.Form = sessionRequest.Form; if ( formControl.Form != null ) { HtmlFormTagCollection forms = new HtmlFormTagCollection(1); forms.Add(formControl.Form.Name, formControl.Form); formControl.LoadFormTree(forms); } else { formControl.DisplayNoDataMessage(); } formControl.Show(); this.SelectedDesignerControl = formControl; HideControls(typeof(SessionFormEditor)); }
/// <summary> /// Displays the Cookie Editor. /// </summary> private void DisplayCookieUserControl() { SessionRequest sessionRequest = this.CurrentSessionRequest; //SessionCookieEditor cookieEditor = (SessionCookieEditor)this.pnUserControl.Controls[1]; cookieControl.Cookies = sessionRequest.RequestCookies; if ( cookieControl.Cookies != null ) { cookieControl.DisplayCookies(); // cookieControl.Visible = true; } else { cookieControl.DisplayNoDataMessage(); } cookieControl.Show(); this.SelectedDesignerControl = cookieControl; HideControls(typeof(SessionCookieEditor)); }