private void pictureBox2_Click(object sender, EventArgs e) { Form pesqPart = new PesquisaParticipante(); pesqPart.ShowDialog(); if (Global.Margem.semaforoPart == "ok") { abrirParticipante(DALCadastro.CarregaParticipante(Global.Margem.semaforoPartInt)); } Global.Margem.AchaNomePart = ""; Global.Margem.semaforoPart = ""; Global.Margem.semaforoPartInt = ""; }
private void button1_Click_1(object sender, EventArgs e) { if (String.IsNullOrEmpty(textBox12.Text) == false) { textBox12.Text = Ferramentas.Retira_Meta(textBox12.Text); Global.Margem.AchaNomePart = textBox12.Text; Form part = new VerificaParticipante(); part.ShowDialog(); if (Global.Margem.semaforoPart == "ok") { abrirParticipante(DALCadastro.CarregaParticipante(Global.Margem.semaforoPartInt)); } Global.Margem.AchaNomePart = ""; Global.Margem.semaforoPart = ""; Global.Margem.semaforoPartInt = ""; } }