/// <summary>
 /// 添加一个View至当前模板版本
 /// </summary>
 /// <param name="view"></param>
 public void AddView(TemplateView view)
 {
     if (this.ViewList.Contains(view))
     {
         throw new Exception("该视图已存在");
     }
     view.ID = MaxViewID + 1;
     this.ViewList.Add(view);
 }
        public override bool Equals(object obj)
        {
            TemplateView TView = obj as TemplateView;

            if (TView == null)
            {
                throw new Exception("Object is not a TemplateView");
            }
            return(this.ID == TView.ID || this.Name == TView.Name);
        }
 /// <summary>
 /// 添加一个View至当前模板版本
 /// </summary>
 /// <param name="view"></param>
 public void AddView(TemplateView view)
 {
     if (this.ViewList.Contains(view))
     {
         throw new Exception("该视图已存在");
     }
     view.ID = MaxViewID + 1;
     this.ViewList.Add(view);
 }