//-------------------------------------------------
 public void setOpt(aerenderOpt op)
 {
     _opt.Copy(op);
     dispOpt();
     editFlag = false;
     chkEnabled();
 }
        //-------------------------------------------------------
        private void dup(int idx)
        {
            if ((idx < 0) || (idx >= _list.Count))
            {
                return;
            }

            aerenderOpt o = new aerenderOpt("");

            o.Copy(_list[idx]);
            _list.Insert(idx, o);
            object ob = this.Items[idx];

            this.Items.Insert(idx, ob);
        }
        //-------------------------------------------------------
        private void swapList(int s, int d)
        {
            int ss = s;
            int dd = d;

            if ((ss == dd) || (ss < 0) || (ss >= _list.Count) || (dd < 0) || (dd >= _list.Count))
            {
                return;
            }

            aerenderOpt o = new aerenderOpt("");

            o.Copy(_list[s]);
            _list[s].Copy(_list[d]);
            _list[d].Copy(o);

            object ob = this.Items[s];

            this.Items[s] = this.Items[d];
            this.Items[d] = ob;
        }
        //-------------------------------------------------------
        private void listDown()
        {
            selectionArea sel     = getSelection();
            int           sLength = sel.length;

            if ((sel.start < 0) || (sLength <= 0) || (sel.end >= _list.Count - 1))
            {
                return;
            }
            if (sLength == 1)
            {
                swapList(sel.start, sel.start + 1);
                sel.shift(1);
                this.SuspendLayout();
                this.ClearSelected();
                this.SetSelected(sel.start, true);
                this.ResumeLayout();
            }
            else
            {
                aerenderOpt ao = new aerenderOpt("");
                ao.Copy(_list[sel.end + 1]);
                object ob = this.Items[sel.end + 1];
                this.SuspendLayout();
                this.ClearSelected();
                for (int i = sel.end; i >= sel.start; i--)
                {
                    _list[i + 1].Copy(_list[i]);
                    this.Items[i + 1] = this.Items[i];
                }
                _list[sel.start].Copy(ao);
                this.Items[sel.start] = ob;
                sel.shift(1);
                for (int i = sel.start; i <= sel.end; i++)
                {
                    this.SetSelected(i, true);
                }
                this.ResumeLayout();
            }
        }