public void GetSlots(System.Windows.Controls.ComboBox combo) { SqlDataReader sDR = reportsDataAccess.GetSlots(); if (sDR.HasRows) { while (sDR.Read()) { combo.Items.Add(sDR["Stock_No"]); } } sDR.Close(); }