private bool MergeFundProperties() { TableUtility tableUtility = new TableUtility(); Fund newFund = new Fund { Index = fund.Index, Name = textBoxFundName.Text, CustodyAccountNumber = textBoxCustodyNr.Text, Isin = textBoxIsin.Text }; List <Range> currencyRange = tableUtility.ReadTableRow(Currency.GetDefaultValue(), new Dictionary <string, string> { { "IsoCode", textBoxCurrency.Text.ToUpper() } }, QueryOperator.OR); if (currencyRange.Count != 0) { Currency currency = tableUtility.ConvertRangesToObjects <Currency>(currencyRange)[0]; newFund.Currency = currency; } else { newFund.Currency = fund.Currency; } if (!fund.Equals(newFund)) { tableUtility.MergeTableRow(newFund); return(true); } return(true); }