// BOTÕES PARA O CENTRO // Adicionar private void btnAddCentro_Click(object sender, EventArgs e) { addOrEditCentro = 0; listBox1.SelectedIndex = -1; funcoesCentros.ClearFieldsCentro(); textCentroID.Text = getIDCentro().ToString(); funcoesCentros.EnableWriteCentro(); funcoesCentros.ShowConfCancBtn(); funcoesAux.DisableListBox(); funcoesAux.LockButtons(); funcoesAux.HideButtons(); }
public void listBoxCentroAlterada() { if (myForm.listBox1.SelectedIndex > -1) { myForm.centroAtual = myForm.listBox1.SelectedIndex + 1; funcoesAux.clearAllListBox(); ClearItems(); HideAll(); funcoesAux.HideButtons(); ResetAll(); MostrarCentro(); BtnVisibles(); ShowEditRemBtn(); funcoesAux.UnlockButtons(); } }