private void InitializeData() { string typeName = AgentElement.GetClassifierName(Repository); ChannelTypeSuggestionProvider typeSuggestionProvider = SuggestionProvider as ChannelTypeSuggestionProvider; try { TypeDataModel setDataModel = typeSuggestionProvider.AvailableTypes.ToList().Find(model => model.Name.Equals(typeName)); if (setDataModel != null) { Type = setDataModel; } } catch (Exception) { } string name = AgentElement.Name; if (!name.StartsWith("FMC4SE Channel") && !name.StartsWith("FMC4SE Explicit Channel")) { Name = name; } Kind = AgentElement.GetTaggedValueString("Type"); Notes = AgentElement.Notes; }
private void InitializeData() { string typeName = AgentElement.GetClassifierName(Repository); ChannelTypeSuggestionProvider typeSuggestionProvider = SuggestionProvider as ChannelTypeSuggestionProvider; try { TypeDataModel setDataModel = typeSuggestionProvider.AvailableTypes.ToList().Find(model => model.Name.Equals(typeName)); if (setDataModel != null) { Type = setDataModel; } } catch (Exception) { } string name = AgentElement.Name; if (!name.StartsWith("FMC4SE Storage")) { Name = name; } else { Name = ""; } Kind = "<Nothing to select>"; Notes = AgentElement.Notes; }