private void pbDeleteLocation_Click(object sender, EventArgs e) { if (CheckCitySelect()) { DialogResult res = JCMsg.ShowConfirmOKCancel(JCMsg.CONFIRM_DEL); if (res == DialogResult.OK && DoDeleteCity(jccmbLocation.Text)) { BindCityList(); } } }
private void pbDeleteIndex_Click(object sender, EventArgs e) { if (CheckIndexSelect()) { DialogResult res = JCMsg.ShowConfirmOKCancel(JCMsg.CONFIRM_DEL); if (res == DialogResult.OK) { string roomType = this.dgvLoadIndex.SelectedRows[0].Cells[0].Value.ToString(); DoDeleteIndex(this.jccmbLocation.Text, roomType); } } }