public void decrQueue(QueueControl control) { 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); }
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); //} }
public void remQueue(QueueControl control) { QueueHandler.Instance.removeCollection(control.collection); flowLayoutPanel1.Controls.Remove(control); UpdateUI(this, null); }