Пример #1
0
        protected override void Store()
        {
            IList <string> list = new ArrayList4 <string>();

            for (int i = 0; i < SIZE; i++)
            {
                list.Add(i.ToString());
            }
            Store(list);
        }
Пример #2
0
        public static IList <int> CreateArrayList(int count)
        {
            IList <int> list = new ArrayList4 <int>();

            for (int i = 0; i < count; i++)
            {
                list.Add(ValueForIndex(i));
            }
            return(list);
        }
Пример #3
0
        public void AddUser(User user)
        {
            if (_users.Contains(user))
            {
                return;
            }

            user.AddedToGroup(this);
            _users.Add(user);
        }
Пример #4
0
 /// <summary>
 /// Notifies the user it was added to a group.
 /// </summary>
 internal void AddedToGroup(Group g)
 {
     _groups.Add(g);
 }
Пример #5
0
 public virtual void AddItem(OrderItem item)
 {
     Activate(ActivationPurpose.Read);
     _items.Add(item);
 }