Nanook.QueenBee.QbItemEditorBase.AddQbKeyToUserDebugFile C# (CSharp) Method

AddQbKeyToUserDebugFile() protected method

protected AddQbKeyToUserDebugFile ( QbKey qbKey ) : void
qbKey Nanook.QueenBee.Parser.QbKey
return void
        protected void AddQbKeyToUserDebugFile(QbKey qbKey)
        {
            string qbKeyText = string.Empty;

            if (qbKey == null)
                return;

            if ((qbKeyText = _qbItemBase.Root.PakFormat.AddNonDebugQbKey(qbKey, _qbItemBase.Root.Filename, _qbItemBase.Root)).Length != 0)
                this.ShowError("QB Key Error", string.Format("QB Key '{0}' has the same crc as item '{1}' from the debug file.{2}{2}The QbKey text '{0}' will not be saved to the User Debug file.", qbKey.Text, qbKeyText, Environment.NewLine));
        }