Exemplo n.º 1
0
        private void frmCalculateRent_Load(object sender, EventArgs e)
        {
            //Populate Combo Boxes

            /*  DataSet ds = new DataSet();
             * ds = Property.getTown(ds);
             *
             *
             * for (int i = 0; i < ds.Tables["ss"].Rows.Count; i++)
             *    cboTown.Items.Add(ds.Tables[0].Rows[i][0].ToString()); */


            DataSet cs = new DataSet();

            cs = Property.getCounty(cs);

            for (int q = 0; q < cs.Tables["ss"].Rows.Count; q++)
            {
                cboCounty.Items.Add(cs.Tables[0].Rows[q][0].ToString());
            }
        }