public AdminShell.ReferenceElement GenerateDefault() { var res = new AdminShell.ReferenceElement(); this.InitSme(res); return(res); }
public FormInstanceReferenceElement( FormInstanceListOfSame parentInstance, FormDescReferenceElement parentDesc, AdminShell.SubmodelElement source = null, bool deepCopy = false) { // way back to description this.parentInstance = parentInstance; this.desc = parentDesc; // initialize Referable var re = new AdminShell.ReferenceElement(); this.sme = re; InitReferable(parentDesc, source); // check, if a source is present this.sourceSme = source; var reSource = this.sourceSme as AdminShell.ReferenceElement; if (reSource != null) { // take over re.value = new AdminShell.Reference(reSource.value); } // create user control this.subControl = new FormSubControlReferenceElement(); this.subControl.DataContext = this; }