public void RemoveSevenSegmentDigit(SevenSegmentDigit sevenSegmentDigit)
        {
            List <SevenSegmentDigit> newList = SevenSegmentDigits.ToList();

            newList.Remove(sevenSegmentDigit);
            SevenSegmentDigits = newList.OrderBy(digit => digit.Position).ToList();
        }
        public void AddSevenSegmentDigit(SevenSegmentDigit sevenSegmentDigit)
        {
            List <SevenSegmentDigit> newList = SevenSegmentDigits.ToList();

            newList.Add(sevenSegmentDigit);
            SevenSegmentDigits = newList.OrderBy(digit => digit.Position).ToList();

            setOutputStateDirty();
            writeOutputState();
        }