Example #1
0
 public void InsertBag(Baggage b)
 {
     if (b == null)
     {
         MessageBox.Show("包裹为空!");
         return;
     }
     if (Count >= capacity)
     {
         MessageBox.Show("入库台已满!");
         return;
     }
     b.Location = new Point(Count * 12 + 2, 2);
     baggages.Insert(0, b);
     Controls.Add(b);
     Controls.SetChildIndex(b, 0);
 }
Example #2
0
 public void PutBaggage(Baggage b, int x, int y)
 {
     frames[x, y].Enqueue(b);
 }
Example #3
0
 public BaggageEventArgs(Baggage b) : base()
 {
     Baggage = b;
 }