Esempio n. 1
0
 private void BtnMoveNext_Click(object sender, EventArgs e)
 {
     if (LstItems.SelectedItems.Count > 0)
     {
         var index = LstItems.SelectedItems[0].Index + 1;
         if (index == LstItems.Items.Count)
         {
             index = 0;
         }
         LstItems.Items[index].Selected = true;
     }
     else
     {
         LstItems.Items[0].Selected = true;
     }
     TxtBuyerNum.Focus();
 }
Esempio n. 2
0
 private void TxtFinalBid_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         if (LstItems.SelectedItems.Count > 0)
         {
             var index = LstItems.SelectedItems[0].Index + 1;
             if (index == LstItems.Items.Count)
             {
                 index = 0;
             }
             LstItems.Items[index].Selected = true;
         }
         else
         {
             LstItems.Items[0].Selected = true;
         }
         e.Handled = true;
         TxtBuyerNum.Focus();
     }
 }
Esempio n. 3
0
 private void FrmShowBidEntry_Load(object sender, EventArgs e)
 {
     TxtBuyerNum.Focus();
 }