Exemplo n.º 1
0
        private void BtRemover_Click(object sender, EventArgs e)
        {
            IItemServices service = Program.container.GetInstance <IItemServices>();

            int ID = Convert.ToInt32(TxtId.Text);


            if (service.Excluir(ID))
            {
                PreencherGrid();


                LimparComponentes();
            }
            else
            {
                MessageBox.Show(this, "Item não Atualizado.\n \n" + service.ObterNotificacoes(), "Trabalho", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }