コード例 #1
0
 private void AppendInputTo(SourceStructure source)
 {
     source.Name = textName.Text;
     source.FileTemplate = textFileTemplate.Text;
     source.NamespaceTemplate = textNamespaceTemplate.Text;
     source.EntityTemplate = textEntityTemplate.Text;
     source.DefaultPropertyTemplate = textDefaultPropertyTemplate.Text;
 }
コード例 #2
0
 private void btnAddStructure_Click(object sender, EventArgs e)
 {
     SourceStructure structure = new SourceStructure();
     sourceStructures.Add(structure);
     bsListStructure.ResetBindings(false);
     bsListStructure.MoveLast();
     SetStructure(structure);
     EditMode(true);
     isAdd = true;
 }
コード例 #3
0
 public PropertyModelRenderer(SourceStructure sourceStructure)
 {
     this.sourceStructure = sourceStructure;
 }
コード例 #4
0
 public TemplateRenderGenerator(SourceStructure sourceStructure)
 {
     this.sourceStructure = sourceStructure;
 }
コード例 #5
0
        private void SetStructure(SourceStructure source)
        {
            textName.Text = source.Name;
            textFileTemplate.Text = source.FileTemplate;
            textNamespaceTemplate.Text = source.NamespaceTemplate;
            textEntityTemplate.Text = source.EntityTemplate;
            textDefaultPropertyTemplate.Text = source.DefaultPropertyTemplate;

            bsPropertyTemplate.DataSource = source.PropertyTemplate;
            gridPropertyTemplate.DataSource = bsPropertyTemplate;
            bsPropertyTemplate.ResetBindings(false);
        }