public void InitialiseTemplate(string name, EntityDefinition ent, TemplateInstance template, int firstTarget) { FieldName.Content = name; this.ent = ent; this.template = template; this.firstTarget = firstTarget; TextboxXPosition.Text = template.GetParameter(firstTarget); TextboxYPosition.Text = template.GetParameter(firstTarget + 1); UpdatePosition(null, null); TextboxXPosition.TextChanged += UpdatePosition; TextboxYPosition.TextChanged += UpdatePosition; }
public void InitialiseTemplate(string name, EntityDefinition ent, TemplateInstance template, int firstTarget) { FieldName.Content = name; this.ent = ent; this.template = template; this.firstTarget = firstTarget; ValueBox.Text = template.GetParameter(firstTarget); ValueBox.TextChanged += Update; }