示例#1
0
 private void gridEditoras_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Insert)
     {
         var formCadastro = new FormCadastroRegistrarEditora(null);
         formCadastro.ShowDialog();
         CarregarEditoras();
     }
 }
示例#2
0
 private void AlterarEditora()
 {
     if (gridEditoras.Rows.Count > 0 && gridEditoras.CurrentRow != null)
     {
         var teditora     = gridEditoras.CurrentRow.DataBoundItem as Aplicacao.Descritores.TEditora;
         var formCadastro = new FormCadastroRegistrarEditora(teditora);
         formCadastro.ShowDialog();
         CarregarEditoras();
     }
 }
示例#3
0
 private void AlterarEditora()
 {
     if (gridEditoras.Rows.Count > 0 && gridEditoras.CurrentRow != null)
     {
         var editora      = gridEditoras.CurrentRow.DataBoundItem as EditoraDTO;
         var formCadastro = new FormCadastroRegistrarEditora(editora);
         formCadastro.ShowDialog();
         CarregarEditoras();
     }
 }