Exemplo n.º 1
0
 public void Set(double[] Values)
 {
     Sizes.Clear();
     foreach (var i in Values)
     {
         Sizes.Add(i);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 値をすべて特定の型に変換する
        /// </summary>
        /// <typeparam name="T">型</typeparam>
        public override void ConvertAll <T>()
        {
            var tempSize   = GetArgSize <T>();
            var tempNumber = Values.Count / tempSize;

            Values = Values.GetRange(0, tempNumber * tempSize);
            Offsets.Clear();
            Numbers.Clear();
            Sizes.Clear();
            Offsets.Add(0);
            Numbers.Add(tempNumber);
            Sizes.Add(Values.Count);
        }
Exemplo n.º 3
0
        public void SetSizes(IEnumerable <SizeType> sizeTypes)
        {
            if (sizeTypes == null || !sizeTypes.Any())
            {
                return;
            }

            Sizes.Clear();

            foreach (var sizeType in sizeTypes)
            {
                Sizes.Add(sizeType);
            }
        }
Exemplo n.º 4
0
        public void AddSize(IQueryable <sitesize> sizes)
        {
            // Reset Sizes
            Sizes.Clear();

            // Add each size
            foreach (var size in sizes)
            {
                _size s = new _size();
                s.id          = size.ID;
                s.description = size.description;
                Sizes.Add(s);
            }
        }
Exemplo n.º 5
0
        public void Reset()
        {
            Initialized = false;
            eventId     = 0;

            lastUpdateTime = DateTime.UtcNow;

            Sites.Clear();
            Coords.Clear();
            Types.Clear();
            Styles.Clear();
            Sizes.Clear();
            Services.Clear();
            Updates.Clear();
        }