예제 #1
0
 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();
         }
     }
 }
예제 #2
0
 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);
         }
     }
 }