/// <summary> /// Add the non debug item to the user defined list if it's not already there /// </summary> /// <param name="qbKey"></param> /// <param name="qbFilename"></param> /// <param name="qbfile"></param> /// <returns>True if crc already exists with different text.</returns> public string AddNonDebugQbKey(QbKey qbKey, string qbFilename, QbFile qbfile) { //check that it's not already in the real debug file if (qbKey.HasText) { string t = string.Empty; if (qbfile != null) { t = qbfile.LookupDebugName(qbKey.Crc, false); } //it's in the debug file if (t.Length != 0) { if (t != qbKey.Text) { return(t); } } else { //check that it's not in the user debug file if (GetNonDebugQbKey(qbKey.Crc, qbFilename) == null) { if (_qbKeys == null) { _qbKeys = new List <NonDebugQbKey>(); } _qbKeys.Add(new NonDebugQbKey(qbKey, qbFilename)); } } } return(string.Empty); }
/// <summary> /// Add the non debug item to the user defined list if it's not already there /// </summary> /// <param name="qbKey"></param> /// <param name="qbFilename"></param> /// <param name="qbfile"></param> /// <returns>True if crc already exists with different text.</returns> public string AddNonDebugQbKey(QbKey qbKey, string qbFilename, QbFile qbfile) { //check that it's not already in the real debug file if (qbKey.HasText) { string t = string.Empty; if (qbfile != null) t = qbfile.LookupDebugName(qbKey.Crc, false); //it's in the debug file if (t.Length != 0) { if (t != qbKey.Text) return t; } else { //check that it's not in the user debug file if ( GetNonDebugQbKey(qbKey.Crc, qbFilename) == null) { if (_qbKeys == null) _qbKeys = new List<NonDebugQbKey>(); _qbKeys.Add(new NonDebugQbKey(qbKey, qbFilename)); } } } return string.Empty; }