private void DisplayInterpretedComponents(PIMComponent pimComponent)
 {
     if (pimComponent != null)
     {
         lvDerivedComponents.ItemsSource = pimComponent.GetInterpretedComponents();
         spDerivedComponents.Visibility  = System.Windows.Visibility.Visible;
     }
     else
     {
         lvDerivedComponents.ItemsSource = null;
         spDerivedComponents.Visibility  = System.Windows.Visibility.Collapsed;
     }
 }
Example #2
0
        internal override PropagationMacroCommand PostPropagation()
        {
            PropagationMacroCommand command = new PropagationMacroCommand(Controller)
            {
                CheckFirstOnlyInCanExecute = true
            };
            ExolutioObject component = Project.TranslateComponent(NamedComponentGuid);

            if (component is PIMComponent)
            {
                PIMComponent pimComponent = (PIMComponent)component;
                foreach (PSMComponent psmComponent in pimComponent.GetInterpretedComponents())
                {
                    if (psmComponent.IsNamed && psmComponent.Name == oldname)
                    {
                        command.Commands.Add(new acmdRenameComponent(Controller, psmComponent, NewName));
                    }
                }
            }

            return(command);
        }