Beispiel #1
0
        public List <string> GetBandDColors()
        {
            List <string> bandDColors;

            var bandcolors = ResistorBands.Where <ResistorBand>(band => band.ToleranceInPercentage != -1).ToList <ResistorBand>();

            bandDColors = new List <string>();
            foreach (ResistorBand b in bandcolors)
            {
                bandDColors.Add(b.Color);
            }

            return(bandDColors);
        }
Beispiel #2
0
        public List <string> GetBandAColors()
        {
            List <string> bandAColors;

            var bandcolors = ResistorBands.Where <ResistorBand>(band => band.SignificantFigures1 != -1).ToList <ResistorBand>();

            bandAColors = new List <string>();
            foreach (ResistorBand b in bandcolors)
            {
                bandAColors.Add(b.Color);
            }

            return(bandAColors);
        }
Beispiel #3
0
        public List <string> GetBandCColors()
        {
            List <string> bandCColors;

            var bandcolors = ResistorBands.Where <ResistorBand>(band => band.Multiplier != -1).ToList <ResistorBand>();

            bandCColors = new List <string>();
            foreach (ResistorBand b in bandcolors)
            {
                bandCColors.Add(b.Color);
            }

            return(bandCColors);
        }