private void btSalvar_Click(object sender, EventArgs e) { if (!isUpdate) { form1.CurrentDescription = txtDescricao.Text; Firebird.SaveNewMachine(form1.CurrentMachine, txtDescricao.Text); MachineSaved = true; } else { maquina.Descricao = txtDescricao.Text; Firebird.ChangeDescription(maquina); formLista.FillListView(); } this.Close(); }