/// <summary> /// Dispose the specified disposing. /// </summary> /// <returns>The dispose.</returns> /// <param name="disposing">If set to <c>true</c> disposing.</param> protected override void Dispose(bool disposing) { if (disposing) { ContentStack.RemoveArrangedSubview(ValueLabel); ValueLabel.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Dispose the specified disposing. /// </summary> /// <returns>The dispose.</returns> /// <param name="disposing">If set to <c>true</c> disposing.</param> protected override void Dispose(bool disposing) { if (disposing) { ValueField.EditingChanged -= _textField_EditingChanged; ValueField.ShouldReturn = null; ValueField.RemoveFromSuperview(); ValueField.Dispose(); ValueField = null; ContentStack.RemoveArrangedSubview(_FieldWrapper); _FieldWrapper.Dispose(); _FieldWrapper = null; } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { ValueField.TouchUpInside -= ValueFieldOnTouchUpInside; ValueField.EditingChanged -= TextField_EditingChanged; ValueField.EditingDidBegin -= ValueField_EditingDidBegin; ValueField.EditingDidEnd -= ValueField_EditingDidEnd; _EntryCell.Focused -= EntryCell_Focused; ValueField.ShouldReturn = null; ValueField.RemoveFromSuperview(); ValueField.Dispose(); ValueField = null; ContentStack.RemoveArrangedSubview(_FieldWrapper); _FieldWrapper.Dispose(); _FieldWrapper = null; } base.Dispose(disposing); }