Пример #1
0
 public void ResetForm()
 {
     trays = new List <Tray>();
     listBoxInspection.Items.Clear();
     listBoxPartNumber.Items.Clear();
     listBoxGoodParts.Items.Clear();
     listBoxArea.Items.Clear();
     listBoxTotalRejects.Items.Clear();
     listBoxRanBy.Items.Clear();
     listBoxClockedBy.Items.Clear();
     listBoxSecondInspection.Items.Clear();
     RejectCount = new Rejects();
     ResetRejectsDisplay();
     btnEdit.Visible      = false;
     buttonRemove.Visible = false;
 }
Пример #2
0
 private void buttonDeselect_Click(object sender, EventArgs e)
 {
     listBoxArea.SelectedIndex             = -1;
     listBoxClockedBy.SelectedIndex        = -1;
     listBoxGoodParts.SelectedIndex        = -1;
     listBoxInspection.SelectedIndex       = -1;
     listBoxPartNumber.SelectedIndex       = -1;
     listBoxRanBy.SelectedIndex            = -1;
     listBoxSecondInspection.SelectedIndex = -1;
     listBoxTotalRejects.SelectedIndex     = -1;
     RejectCount = new Rejects();
     ResetRejectsDisplay();
     SelectedIndex        = -1;
     btnEdit.Visible      = false;
     buttonRemove.Visible = false;
     CountRejects();
 }
Пример #3
0
 private void ListBoxesClick(object sender, EventArgs e)
 {
     if (!(sender as ListBox).SelectedIndex.Equals(-1))
     {
         SelectedIndex                         = (sender as ListBox).SelectedIndex;
         listBoxArea.SelectedIndex             = SelectedIndex;
         listBoxClockedBy.SelectedIndex        = SelectedIndex;
         listBoxGoodParts.SelectedIndex        = SelectedIndex;
         listBoxInspection.SelectedIndex       = SelectedIndex;
         listBoxPartNumber.SelectedIndex       = SelectedIndex;
         listBoxRanBy.SelectedIndex            = SelectedIndex;
         listBoxSecondInspection.SelectedIndex = SelectedIndex;
         listBoxTotalRejects.SelectedIndex     = SelectedIndex;
         btnEdit.Visible                       = true;
         buttonRemove.Visible                  = true;
         SelectedTray = trays.ElementAt(SelectedIndex);
         RejectCount  = new Rejects();
         ResetRejectsDisplay();
         CountRejectsTray(SelectedTray);
     }
 }