Exemple #1
0
        public void loadUpdateCombo()
        {//load combo with stockNo and Description for all stock DataSet ds = new DataSet(); ds = Stock.getStock(ds);
            DataSet ds = new DataSet();

            ds = Parts.getUnregisteredParts(ds);

            for (int i = 0; i < ds.Tables["Part_Type"].Rows.Count; i++)
            {
                cboUpdatePart.Items.Add(ds.Tables[0].Rows[i][0].ToString());
            }
        }
Exemple #2
0
        public void loadCombo()
        {//load combo
            DataSet ds = new DataSet();

            ds = Parts.getUnregisteredParts(ds);

            for (int i = 0; i < ds.Tables["Part_Type"].Rows.Count; i++)
            {
                cboAddParts.Items.Add(ds.Tables[0].Rows[i][0].ToString());
            }
        }