void OnShown(object uiState, Action <ShowTabContentEventArgs> onShownHandler, IShowContext showCtx, ShowTabContentResult result) { if (uiState != null) { RestoreUIState(uiState); } if (onShownHandler != null || showCtx.OnShown != null) { var e = new ShowTabContentEventArgs(result, this); onShownHandler?.Invoke(e); showCtx.OnShown?.Invoke(e); } DnSpyEventSource.Log.ShowDocumentTabContentStop(); }
void OnShown(object uiState, Action<ShowTabContentEventArgs> onShownHandler, IShowContext showCtx, ShowTabContentResult result) { if (uiState != null) RestoreUIState(uiState); if (onShownHandler != null || showCtx.OnShown != null) { var e = new ShowTabContentEventArgs(result, this); onShownHandler?.Invoke(e); showCtx.OnShown?.Invoke(e); } }
/// <summary> /// Constructor /// </summary> /// <param name="result">Result></param> /// <param name="tab">Tab</param> public ShowTabContentEventArgs(ShowTabContentResult result, IDocumentTab tab) { Result = result; HasMovedCaret = false; Tab = tab; }