NZBHags.MainGUI.incrQueue C# (CSharp) Method

incrQueue() public method

public incrQueue ( QueueControl control ) : void
control QueueControl
return void
        public void incrQueue(QueueControl control)
        {
            //if (control.collection.id + 1 < flowLayoutPanel1.Controls.Count)
            //{
                QueueHandler.Instance.setCollectionID(control.collection, control.collection.id++);
                int index = flowLayoutPanel1.Controls.GetChildIndex(control);
                flowLayoutPanel1.Controls.SetChildIndex(flowLayoutPanel1.Controls[index++], index);
                flowLayoutPanel1.Controls.SetChildIndex(control, index++);
                UpdateUI(this, null);
            //}
        }