private void LoadStakeholders() { _stakeholderElements = (from x in EAMain.Repository.GetAllElements() where EAMain.IsStakeholder(x) select x).ToList(); var stakeholderNames = (from stakeholder in _stakeholderElements select stakeholder.Name).ToArray(); // ReSharper disable once CoVariantArrayConversion cmboStakeholder.Items.AddRange(stakeholderNames); }
public static IStakeholder Load(IEAElement element) { if (null == element || !EAMain.IsStakeholder(element)) { throw new ArgumentException("Argument null or not a stakeholder"); } var stakeholder = new Stakeholder { Name = element.Name, Role = element.Stereotype, GUID = element.GUID }; return(stakeholder); }
private void LoadStakeholder(IEAElement element) { Stakeholders.Clear(); IEnumerable <IStakeholderAction> actions = element.GetConnectors() .Where(connector => connector.IsAction() && EAMain.IsStakeholder(connector.GetClient())) .Select(sa => (IStakeholderAction) new StakeholderAction(this, sa)); foreach (IStakeholderAction action in actions) { Stakeholders.Add(action); } }