Exemplo n.º 1
0
 /// <summary>
 /// Gets the information if the task pane for the document is visible.
 /// </summary>
 public bool TaskPaneVisible(_Document document, string caption)
 {
     return(CustomTaskPanes.Any(pane => pane.Window == document.ActiveWindow && pane.Title.Equals(caption) && pane.Visible));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the information if the task pane for the document is visible.
 /// </summary>
 public bool TaskPaneVisible <T>(_Document document) where T : UIElement
 {
     return(CustomTaskPanes.Any(pane => pane.Window == document.ActiveWindow && pane.Control is HostPane <T> && pane.Visible));
 }