Ejemplo n.º 1
0
        private void mnuSessaoDesvincular_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(string.Format(MensagensDoSistema._0061, "\n" + txtNivel1Desc.Text.ToString().TrimEnd() + "\n", "\n" + lsbSessoes.Text.ToString().TrimEnd()), "Sessão", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                CategoriaNegocios Sessao_N = new CategoriaNegocios();
                if (Sessao_N.DesvincularSessaoNivel1(Convert.ToInt64(lblNivel1Id.Text), Convert.ToInt64(lsbSessoes.SelectedValue)))
                {
                    MessageBox.Show(MensagensDoSistema._0018, "Atualização", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }


                CarregarSessaoVinculadaNivel1();
            }
        }