/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Minibrowser_FormClosed(Object sender, FormClosedEventArgs e) { cMiniBrowser = null; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void requestDetailsToolStripMenuItem_Click(object sender, EventArgs e) { String lURL = String.Empty; String lCookie = String.Empty; String lSrcIP = String.Empty; String lUserAgent = String.Empty; try { lURL = DGV_HTTPRequests.SelectedRows[0].Cells["URL"].Value.ToString(); lCookie = DGV_HTTPRequests.SelectedRows[0].Cells["SessionCookies"].Value.ToString(); lSrcIP = DGV_HTTPRequests.SelectedRows[0].Cells["SrcIP"].Value.ToString(); lUserAgent = String.Empty; //DGV_HTTPRequests.SelectedRows[0].Cells[1].Value.ToString(); } catch (ArgumentOutOfRangeException lEx) { PluginParameters.HostApplication.LogMessage(String.Format("{0}: {1}", Config.PluginName, lEx.Message)); return; } catch (Exception lEx) { PluginParameters.HostApplication.LogMessage(String.Format("{0}: {1}", Config.PluginName, lEx.Message)); } try { Browser lMiniBrowser = new Browser(lURL, lCookie, lSrcIP, lUserAgent); lMiniBrowser.Show(); // Dialog(); } catch (Exception lEx) { PluginParameters.HostApplication.LogMessage(String.Format("{0}: {1}", Config.PluginName, lEx.Message)); MessageBox.Show("MiniBrowser unexpectedly crashed : " + lEx.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void TSMI_Minibrowser_Click(object sender, EventArgs e) { if (cMiniBrowser == null) { cMiniBrowser = new Browser("", "", "", ""); cMiniBrowser.FormClosed += Minibrowser_FormClosed; cMiniBrowser.Show(); } else { MessageBox.Show("Another instance of Minibrowser is already running", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DGV_Sessions_DoubleClick(object sender, EventArgs e) { String lURL = String.Empty; String lCookies = String.Empty; String lSrcIP = String.Empty; String lUserAgent = String.Empty; if (DGV_Sessions.SelectedRows.Count > 0) { try { lURL = DGV_Sessions.SelectedRows[0].Cells["URL"].Value.ToString(); lCookies = DGV_Sessions.SelectedRows[0].Cells["SessionCookies"].Value.ToString(); lSrcIP = DGV_Sessions.SelectedRows[0].Cells[1].Value.ToString(); lUserAgent = DGV_Sessions.SelectedRows[0].Cells["Browser"].Value.ToString(); Browser lMiniBrowser = new Browser(lURL, lCookies, lSrcIP, lUserAgent); lMiniBrowser.Show(); } catch (Exception lEx) { cPluginParams.HostApplication.LogMessage(String.Format("{0}: {1}", Config.PluginName, lEx.Message)); } } // if (DG... }