internal LibraryAmplifier SymbolAmplifier(string id)
        {
            LibraryAmplifier retObj = null;

            foreach (LibraryAmplifier lObj in this._library.Amplifiers)
            {
                if (lObj.ID == id)
                {
                    return(lObj);
                }
            }

            logger.Warn("Label " + id + " was not found in the base library file.");

            return(retObj);
        }
Exemplo n.º 2
0
        private Dictionary <string, string> _CreateLabelDictionary(FieldListTypeField field)
        {
            Dictionary <string, string> label = new Dictionary <string, string>();

            label.Add("Name", field.Name);
            label.Add("Label", field.Label);
            label.Add("Description", field.Description);
            label.Add("Remarks", field.Remarks);
            label.Add("X", Convert.ToString(field.X));
            label.Add("Y", Convert.ToString(field.Y));

            LibraryAmplifier amp = _librarian.SymbolAmplifier(field.AmplifierID);

            if (amp != null)
            {
                label.Add("Type", Convert.ToString(amp.Type));
                label.Add("Length", Convert.ToString(amp.Length));
            }

            return(label);
        }