Exemple #1
0
 private void ChangeViewerVisibility(bool? display, ViewerBase viewer)
 {
     switch (display.HasValue && display.Value)
     {
         case true:
             {
                 _viewerManager.DisplayedViewers.Add(viewer);
                 break;
             }
         case false:
             {
                 _viewerManager.DisplayedViewers.Remove(viewer);
                 break;
             }
     }
 }
Exemple #2
0
 public void RegisterViewer(ViewerBase viewer)
 {
     _viewers.Add(viewer);
     DisplayedViewers.Add(viewer);
 }