예제 #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);
        }
예제 #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();
     }
 }