예제 #1
0
        private void Remover()
        {
            AtivModel ativModel;

            try
            {
                ativModel = new AtivModel();
                foreach (DataGridViewRow item in grdAtividade.Rows)
                {
                    if (Convert.ToInt32(item.Cells[0].Value) == 1)
                    {
                        ativModel.CodAtiv = Convert.ToInt32(item.Cells[1].Value);
                        CtrlAtiv.RemoverAtividade(ativModel);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }