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; }
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; }
public PropertyModelRenderer(SourceStructure sourceStructure) { this.sourceStructure = sourceStructure; }
public TemplateRenderGenerator(SourceStructure sourceStructure) { this.sourceStructure = sourceStructure; }
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); }