예제 #1
0
 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));
 }
예제 #2
0
 public void Remove(BusinessDocLayerModel sModel)
 {
     m_Items.Remove(sModel);
 }
예제 #3
0
 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);
 }