private void button1_Click(object sender, EventArgs e) { formEquipas formEquipa = new formEquipas(dbContainer); formEquipa.FormClosing += (object formSender, FormClosingEventArgs fromE) => { refreshList(); }; formEquipa.ShowDialog(this); }
private void lbListaEquipas_DoubleClick(object sender, EventArgs e) { if (lbListaEquipas.SelectedIndex >= 0) { formEquipas formEquipa = new formEquipas(getSelectedTeam(), dbContainer); formEquipa.FormClosing += (object formSender, FormClosingEventArgs fromE) => { refreshList(); }; formEquipa.ShowDialog(this); disablePlayers(); } }