/// <summary>
 /// Default constructor (new)
 /// </summary>
 public frmTemplatePageEdit(DBGuid TemplateId, TemplatePageContainer ExistingPages)
 {
     // Required for Windows Form Designer support
       InitializeComponent();
       m_TemplateID = TemplateId;
       m_ExistingPages = ExistingPages;
 }
 public virtual TemplatePageContainer SelectChildrenByPageOfTemplate(DBGuid IDVal)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     TemplatePageContainer result;
     DataSet entitySet = m_DataContext.ndihdPageOfTemplateSelectBy(IDVal);
     result = new TemplatePageContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
 public virtual TemplatePageContainer TemplatePageSelectAll()
 {
     TraceCallEnterEvent.Raise();
       try
       {
     TemplatePageContainer result;
     DataSet entitySet = m_DataContext.ndihdTemplatePageSelectAll();
     result = new TemplatePageContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
 /// <summary>
 /// Edit constructor
 /// </summary>
 public frmTemplateDetailEdit(TemplateDetail Detail, TemplatePageContainer pages)
 {
     // Required for Windows Form Designer support
       InitializeComponent();
       m_CurrentDetail = Detail;
       m_Pages = pages;
 }
 public TemplatePageContainer PageOfTemplateSelectByIsactive(Guid templateId, bool isActive)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     TemplatePageContainer result;
     DataSet entitySet = m_DataContext.ndihdPageOfTemplateSelectByIsactive(
       templateId,
       isActive);
     result = new TemplatePageContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }