public ArchitectureModel(string solName, string solFolder) { this.m_DataLayers = new DataAccessContainer(); this.m_ServiceLayers = new ServiceLayerContainer(); this.m_SolutionName = solName; this.m_SolutionFolder = solFolder; this.m_UtilityLayer = new LayerModel(this); this.m_UtilityLayer.LayerName = "Utility"; this.m_UtilityLayer.LayerFolder = "Utility"; this.m_BusinessDocsLayer = new BusinessDocLayerModel(this, "BusinessDocuments"); TraceInfoEvent.Raise(string.Format("Architecture '{0}' created.", solName)); }
public void Remove(BusinessDocLayerModel sModel) { m_Items.Remove(sModel); }
public int Add(BusinessDocLayerModel sModel) { foreach (BusinessDocLayerModel model in m_Items) { if (model.LayerName.ToLower().Equals(sModel.LayerName.ToLower())) { throw new ArgumentException("There is already a ServiceLayerModel item in the container with the same name."); } } return m_Items.Add(sModel); }