/// <summary> /// Loads the XSLT designer. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void LoadXsltDesigner(object sender, System.EventArgs e) { XsltDialog dialog = new XsltDialog(); bool displayDialog = false; if ( _currentResponse != null ) { string s; if ( _currentResponse.GetHtmlXml.Length > 0 ) { s = _currentResponse.GetHtmlXml; } else { s = this.parser.GetParsableString(_currentResponse.HttpBody); } dialog.XmlString = s; displayDialog = true; dialog.Show(); } if ( displayDialog == false ) { MessageBox.Show("No HTTP Body data found.", AppLocation.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void mnuXSLTDialog_Click(object sender, System.EventArgs e) { XsltDialog dialog = new XsltDialog(); bool displayDialog = false; if ( currentWebResponse != null ) { if ( currentWebResponse.HttpBody.Length > 0 ) { dialog.XmlString = currentWebResponse.HttpBody; displayDialog = true; dialog.Show(); } } if ( displayDialog == false ) { MessageBox.Show("No HTTP Body data found.", AppLocation.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Warning); } }