Inheritance: System.Windows.Forms.UserControl, IUpdatingControl
示例#1
0
文件: MainGUI.cs 项目: maesse/NZBHags
 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);
 }
示例#2
0
文件: MainGUI.cs 项目: maesse/NZBHags
 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);
     //}
 }
示例#3
0
文件: MainGUI.cs 项目: maesse/NZBHags
 public void remQueue(QueueControl control)
 {
     QueueHandler.Instance.removeCollection(control.collection);
     flowLayoutPanel1.Controls.Remove(control);
     UpdateUI(this, null);
 }