Exemplo n.º 1
0
 public AnatomySelectionGroup(IEnumerable <Anatomy> selectedAnatomy)
 {
     displayContentsCommand = new CallbackAnatomyCommand("Show Selected Items", true, () =>
     {
         if (DisplayContents != null)
         {
             DisplayContents(relatedAnatomy);
         }
     });
     foreach (var anatomy in selectedAnatomy)
     {
         relatedAnatomy.Add(anatomy);
         foreach (var selectable in anatomy.SelectableAnatomy)
         {
             addSingleAnatomy(selectable);
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Add an external command, these commands are not saved.
 /// </summary>
 /// <param name="command"></param>
 public void addExternalCommand(CallbackAnatomyCommand command)
 {
     externalCommands.Add(command);
 }