Exemplo n.º 1
0
        //Создаётся группа
        private void MakeGroup_Click(object sender, EventArgs e)
        {
            CGroup group = new CGroup();

            Mylist.front();
            while (!Mylist.eol())
            {
                if (Mylist.getObject().Current)
                {
                    group.Add(Mylist.getObject());
                    Mylist.erase(Mylist.getCurrent());

                    Mylist.front();
                }
                else
                {
                    Mylist.next();
                }
            }

            if (group.getList().size > 0)
            {
                Mylist.push_back(group);
            }

            ActiveActionChange(createMenu, null);
        }