Exemplo n.º 1
0
        private void refreshStoreList()
        {
            Data store = ShardDb.getStores(Convert.ToInt16(comboBoxCity.SelectedValue));

            if (!store.Success)
            {
                this.Close();
                return;
            }
            comboBoxStore.DisplayMember = "name";
            comboBoxStore.ValueMember   = "id";
            comboBoxStore.DataSource    = store.DataTable;
        }
Exemplo n.º 2
0
        private void cbCity_SelectedIndexChanged(object sender, EventArgs e)
        {
            Data stores = ShardDb.getStores(Convert.ToInt16(comboBoxCity.SelectedValue));

            if (!stores.Success)
            {
                this.Close();
                return;
            }
            comboBoxStore.DisplayMember = "name";
            comboBoxStore.ValueMember   = "id";
            comboBoxStore.DataSource    = stores.DataTable;
        }