internal static void FillLogDisplayFields(Session IrSe) { if (UI.LogDisplayTabs.InvokeRequired) { FillLogDisplayFields_d FLDF_d = new FillLogDisplayFields_d(FillLogDisplayFields); UI.Invoke(FLDF_d, new object[] { IrSe }); } else { if (IrSe == null) return; if (IrSe.Request != null) FillLogFields(IrSe.Request); if (IrSe.Response != null) FillLogFields(IrSe.Response, IrSe.Request); //FillLogReflection(Reflection); try { UI.LogSourceLbl.Text = "Source: " + IronLog.CurrentSourceName; UI.LogIDLbl.Text = "ID: " + IronLog.CurrentID.ToString(); } catch { } UI.ProxyShowOriginalRequestCB.Checked = false; UI.ProxyShowOriginalResponseCB.Checked = false; UI.ProxyShowOriginalRequestCB.Visible = IrSe.OriginalRequest != null; UI.ProxyShowOriginalResponseCB.Visible = IrSe.OriginalResponse != null; IronUI.ResetLogStatus(); } }
internal static void FillLogDisplayFields(Session IrSe, string Reflection) { if (UI.LogDisplayTabs.InvokeRequired) { FillLogDisplayFields_d FLDF_d = new FillLogDisplayFields_d(FillLogDisplayFields); UI.Invoke(FLDF_d, new object[] { IrSe, Reflection }); } else { if (IrSe == null) return; if (IrSe.Request != null) FillLogFields(IrSe.Request); if (IrSe.Response != null) FillLogFields(IrSe.Response); FillLogReflection(Reflection); try { UI.LogSourceLbl.Text = "Source: " + IronLog.CurrentSourceName; UI.LogIDLbl.Text = "ID: " + IronLog.CurrentID.ToString(); } catch { } IronUI.ResetLogStatus(); } }