Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/LogExpert.UI/Services/TabControllerService/TabController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,19 +455,19 @@ protected virtual void Dispose (bool disposing)
}

/// <summary>
/// Gets all LogWindow instances from the DockPanel's Contents collection.
/// Gets all LogWindow instances currently held by the DockPanel's panes, in the order their tab strips display
/// them. Panes of every dock state are enumerated, so floating windows are included.
/// </summary>
/// <returns>Read-only list of all LogWindows in the DockPanel</returns>
public IReadOnlyList<LogWindow> GetAllWindowsFromDockPanel ()
{
return !_initialized || _dockPanel == null
? []
: _dockPanel.Panes
.Where(pane => pane.DockState == DockState.Document)
.SelectMany(pane => pane.Contents.OfType<LogWindow>())
.ToList()
.AsReadOnly();
}
public IReadOnlyList<LogWindow> GetAllWindowsFromDockPanel ()
{
return !_initialized || _dockPanel == null
? []
: _dockPanel.Panes
.SelectMany(pane => pane.DisplayingContents.OfType<LogWindow>())
.ToList()
.AsReadOnly();
}

#endregion
}
Loading