Ejemplo n.º 1
0
 public override void Delete(object sender, EventArgs e)
 {
     if (dgvWarehouse.SelectedRows.Count < 1)
     {
         frm.NoticeMessage = Resources.DelEmpty;
     }
     else
     {
         if (MessageBox.Show("삭제하시겠습니까?", "확인", MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             try
             {
                 StandardService service = new StandardService();
                 service.DeleteWarehouse(item.Warehouse_ID);
             }
             catch (Exception err)
             {
                 Log.WriteError(err.Message, err);
             }
             dgvWarehouse.DataSource = null;
             LoadGridView();
         }
     }
 }