private void setDefaultFalconGaugeFormat()
 {
     if (FalconGauge != null)
     {
         FalconGaugeFormat = new FalconGaugeFormat()
         {
             TotalSize                 = FalconGauge.FormatTotalSize,
             IntegralPartMinSize       = FalconGauge.FormatIntegralPartMinSize,
             FractionalPartSize        = FalconGauge.FormatFractionalPartSize,
             PadFractionalPartWithZero = true,
         };
     }
 }
        private void updateFalconGaugeDigitValues()
        {
            if (owner == null)
            {
                return;
            }

            string outputString = FalconGaugeFormat != null?FalconGaugeFormat.ToString(FalconValue) : string.Empty;

            using (IEnumerator <char> outputStringEnumerator = outputString.Reverse().GetEnumerator())
            {
                foreach (FalconGaugeDigit digit in FalconGaugeDigits)
                {
                    if (!outputStringEnumerator.MoveNext())
                    {
                        digit.Value        = ' ';
                        digit.DecimalPoint = false;
                    }
                    else
                    {
                        if (outputStringEnumerator.Current != '.')
                        {
                            digit.Value        = outputStringEnumerator.Current;
                            digit.DecimalPoint = false;
                        }
                        else
                        {
                            digit.DecimalPoint = true;

                            if (!outputStringEnumerator.MoveNext())
                            {
                                digit.Value = ' ';
                            }
                            else
                            {
                                digit.Value = outputStringEnumerator.Current;
                            }
                        }
                    }
                }
            }

            writeOutputState();
        }
 public SevenSegmentDisplay()
 {
     RemoveSevenSegmentDisplayCommand = new RelayCommand(executeRemoveSevenSegmentDisplay);
     FalconGaugeFormat = new FalconGaugeFormat();
 }