private void PopulateComboBoxes()
 {
     string macName = Properties.Settings.Default.machinename;
     DBConnect dbc = new DBConnect();
     ArrayList partNames = dbc.GetPartNames(macName,this.cat);
     ArrayList OperNames = dbc.GetOperationNames(macName);
     foreach (ComboBox cb in parts)
     {
         cb.Items.Clear();
         cb.Items.AddRange(partNames.ToArray());
     }
     foreach (ComboBox cb in opr)
     {
         cb.Items.Clear();
         cb.Items.AddRange(OperNames.ToArray());
     }
 }