private void pacote1_Click(ThemaMeritor.TipoEvento.evento tipo)
 {
     if (tipo == ThemaMeritor.TipoEvento.evento.Cancelar)
     {
         v.Limpar();
     }
     if (tipo == ThemaMeritor.TipoEvento.evento.Editar)
     {
         editar();
     }
     if (tipo == ThemaMeritor.TipoEvento.evento.Excluir)
     {
         excluir();
     }
     if (tipo == ThemaMeritor.TipoEvento.evento.Novo)
     {
         novo();
     }
 }
Esempio n. 2
0
 private void pacote1_Click(ThemaMeritor.TipoEvento.evento tipo)
 {
     if (tipo == ThemaMeritor.TipoEvento.evento.Novo)
     {
         cadastrar();
     }
     if (tipo == ThemaMeritor.TipoEvento.evento.Editar)
     {
         MsgBox.Show.Error("Esta opção está desabilitada, por favor , exclua o item e inclua novamente");
     }
     if (tipo == ThemaMeritor.TipoEvento.evento.Excluir)
     {
         delete();
     }
     if (tipo == ThemaMeritor.TipoEvento.evento.Cancelar)
     {
         btn_detalhar.IsEnabled = false;
     }
 }
 private void pacote1_Click(ThemaMeritor.TipoEvento.evento tipo)
 {
     if (tipo == ThemaMeritor.TipoEvento.evento.Novo)
     {
         Cadastro();
     }
     if (tipo == ThemaMeritor.TipoEvento.evento.Editar)
     {
         Editar();
     }
     if (tipo == ThemaMeritor.TipoEvento.evento.Excluir)
     {
         Excluir();
     }
     if (tipo == ThemaMeritor.TipoEvento.evento.Cancelar)
     {
         btn_detalhar.IsEnabled  = false;
         btn_relatorio.IsEnabled = false;
     }
 }
        private void pacote1_Click(ThemaMeritor.TipoEvento.evento tipo)
        {
            if (tipo == ThemaMeritor.TipoEvento.evento.Novo)
            {
                Cadastro();
            }

            if (tipo == ThemaMeritor.TipoEvento.evento.Editar)
            {
                Editar();
            }

            if (tipo == ThemaMeritor.TipoEvento.evento.Excluir)
            {
                Deletar();
            }

            if (tipo == ThemaMeritor.TipoEvento.evento.Cancelar)
            {
                verificador.Limpar();
            }
        }
 private void pacote1_Click(ThemaMeritor.TipoEvento.evento tipo)
 {
 }