Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            formEquipas formEquipa = new formEquipas(dbContainer);

            formEquipa.FormClosing += (object formSender, FormClosingEventArgs fromE) => {
                refreshList();
            };
            formEquipa.ShowDialog(this);
        }
Esempio n. 2
0
 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();
     }
 }