private void btn_getCities_Click(object sender, EventArgs e) { int stateCode; if (!int.TryParse(this.txtbx_stateCode.Text, out stateCode)) { MessageBox.Show("Wrong StateCode or the StateCode is not specified"); return; } PWS0.stateCities cities = new PWS0.stateCities(); cities.sb_readAndSaveCitiesToDB(stateCode, null); MessageBox.Show("Finished!!!"); }
private void btn_getStates_Click(object sender, EventArgs e) { PWS0.stateCities states = new PWS0.stateCities(); states.sb_readAndSaveStatesToDB(this.chkbx_getAllCities.Checked); MessageBox.Show("Finished!!!"); }