コード例 #1
0
        //[XmlIgnore]
        //public override UserControl AutoControl
        //{
        //    get
        //    {
        //        if ( _control == null )
        //            _control = new DelayTableControl( DelayAuto );
        //        return _control;
        //    }
        //}

        public override void SetListValues(string text)
        {
            _valueList.Clear( );
            foreach (Match match in Regex.Matches(text, TimeValue.stringRegex, RegexOptions.IgnoreCase))
            {
                if (!TimeValue.IsCheck(match.Value))
                {
                    continue;
                }
                Value valueObject = new TimeValue(match.Value);
                _valueList.Add(valueObject);
            }
        }
コード例 #2
0
        public Delay_ObjectSequence(IStream element, int index, eTypeObjectCollection typeCollection, string text)
            : base(element, index, typeCollection)
        {
            string @string = text.Trim();

            if (typeCollection == eTypeObjectCollection._1D)
            {
                if (@string.StartsWith("="))
                {
                    @string = @string.Substring(1).Trim();
                    if (TimeValue.IsCheck(@string))
                    {
                        Value = new TimeValue(@string);
                    }
                    else if (CheckedVariableName(ref @string))
                    {
                        Variable = new SequenceVariable(@string, new TimeValue("1u"), new TimeValue("100n"), null, null);
                    }
                    else
                    {
                        Value = Default;
                    }
                }
                else if (TimeValue.IsCheck(@string))
                {
                    Value = new TimeValue(@string);
                }
                else if (CheckedTableName(ref @string))
                {
                    Table = new DelayTableSequence(this, @string);
                }
                else
                {
                    Value = Default;
                }
            }
            else
            {
                if (CheckedTableName(ref @string))
                {
                    Table = new DelayTableSequence(this, @string);
                }
                else
                {
                    Type = eTypeObjectStream.Default;
                }
            }
        }