Beispiel #1
0
        private void buttonAddCond_Click(object sender, EventArgs e)
        {
            Condominio.comando = "INSERT";
            NovoCond novoCond = new NovoCond(null, null, null);

            novoCond.ShowDialog();
        }
Beispiel #2
0
 private void buttonExcluir_Click(object sender, EventArgs e)
 {
     if (dataGridView1.Rows.Count > 0 && Condominio.condominio != "")
     {
         Condominio.comando = "DELETE";
         NovoCond novoCond = new NovoCond(Condominio.codigo, Condominio.condominio, Condominio.condTipo);
         novoCond.ShowDialog();
     }
     else
     {
         MessageBox.Show("Não ha condominio selecionado!");
     }
 }