public void loadCombo()
        {
            DataSet ds = new DataSet();

            ds = Parts.getRegisteredParts(ds);

            for (int i = 0; i < ds.Tables["Parts"].Rows.Count; i++)
            {
                cboListParts.Items.Add(ds.Tables[0].Rows[i][0].ToString().PadLeft(3, '0'));
            }
        }
Ejemplo n.º 2
0
        public void loadCombo()
        {//load combo with stockNo and Description for all stock DataSet ds = new DataSet(); ds = Stock.getStock(ds);
            DataSet ds = new DataSet();

            ds = Parts.getRegisteredParts(ds);

            for (int i = 0; i < ds.Tables["Parts"].Rows.Count; i++)
            {
                cboSelectPart.Items.Add(ds.Tables[0].Rows[i][0].ToString().PadLeft(3, '0'));
            }
        }