Exemplo n.º 1
0
 public uc_template_source GetDataSource()
 {
     if (DataSource == null)
     {
         DataSource = new uc_template_source();
     }
     DataSource.BuildPath     = txtcreatepath.Text;
     DataSource.Format        = txtformat.Text;
     DataSource.NameSpaceName = txtnamespace.Text;
     DataSource.TemplateName  = txttemplate.Text;
     DataSource.TemplatePath  = txttemplatepath.Text;
     DataSource.Enable        = ckcanuse.Checked;
     return(DataSource);
 }
Exemplo n.º 2
0
 public void DataBind()
 {
     this.uc_template1.DataSource = DataSource;
     this.uc_template1.DataBind();
 }