Ejemplo n.º 1
0
 private void btnDel_Click(object sender, EventArgs e)
 {
     if (this.dataGridView1.SelectedRows.Count > 0)
     {
         var brand          = this.dataGridView1.SelectedRows[0].Tag as ExLogisticModel;
         var deleteResponse = WebRequestUtil.DeleteExLogistic(brand.ExId);
         if (deleteResponse != null)
         {
             bool res = JsonUtil.Deserialize <QSWResponse <bool> >(deleteResponse.Content).Data;
             if (res)
             {
                 this.dataGridView1.Rows.Remove(this.dataGridView1.SelectedRows[0]);
             }
         }
     }
 }