Ejemplo n.º 1
0
        public override string ToString()
        {
            var s = new StringBuilder();

            s.AppendFormat("Mode={0}", Mode);

            if (HasColourSettings)
            {
                s.AppendFormat(
                    ", LowThreshold={0}, HighThreshold={1}"
                    , LowThreshold.ToArray().ToCsv(',', d => d.ToString())
                    , HighThreshold.ToArray().ToCsv(',', d => d.ToString()));
            }

            if (UseFakeDevice)
            {
                s.Append(", UseFakeDevice=true");
            }

            if (!string.IsNullOrWhiteSpace(CaptureConfig))
            {
                s.Append($"capture={CaptureConfig}");
            }

            return(s.ToString());
        }
Ejemplo n.º 2
0
        public override string ToString()
        {
            var s = new StringBuilder();

            s.AppendFormat("Mode={0}", Mode);

            if (HasColourSettings)
            {
                s.AppendFormat(
                    ", LowThreshold={0}, HighThreshold={1}"
                    , LowThreshold.ToArray().ToCsv(',', d => d.ToString())
                    , HighThreshold.ToArray().ToCsv(',', d => d.ToString()));
            }

            if (UseFakeDevice)
            {
                s.AppendFormat(", UseFakeDevice=true", Environment.NewLine);
            }
            return(s.ToString());
        }