private void pictureBox6_Click(object sender, EventArgs e) { if (Global.Margem.ConfiguraçãoSistema != "adm") { MessageBox.Show("Acesso não autorizado"); return; } string temp = ""; if (checkBox2.Checked == false) { temp = "não"; } if (checkBox2.Checked == true) { temp = "sim"; } if (String.IsNullOrEmpty(textBox3.Text) == false) { DALCadastro.Insere_Contas_Corrente(label24.Text, textBox4.Text, textBox5.Text, textBox7.Text, textBox6.Text, textBox3.Text, textBox8.Text, temp, label21.Text); } if (Global.Margem.ConfiguraçãoSistemaLOGs == "sim") { Ferramentas.CriaLog("config", "Incluiu nova Conta : " + textBox8.Text); } textBox4.ReadOnly = true; textBox4.Text = ""; textBox5.ReadOnly = true; textBox5.Text = ""; textBox6.ReadOnly = true; textBox6.Text = ""; textBox7.ReadOnly = true; textBox7.Text = ""; textBox3.Text = ""; textBox8.ReadOnly = true; textBox8.Text = ""; checkBox2.Visible = false; }