protected override void OnAttached() { Input defaultInput = mBlock.InputList[0]; defaultInput.SetName(EMPTY_NAME); FieldLabel field = defaultInput.FieldRow[0] as FieldLabel; mLabelText = field.GetText(); UpdateInternal(); }
protected override Procedure DeserializeProcedure(XmlElement xmlElement) { Procedure info = Procedure.Deserialize(xmlElement); FieldLabel nameField = GetNameField(); if (string.IsNullOrEmpty(info.Name) && nameField != null) { info = new Procedure(nameField.GetText(), info.Arguments, info.DefinitionHasStatementBody); } return(info); }