예제 #1
0
        private void Add_Click(object sender, EventArgs e)
        {
            AddToListForm AddItemForm = new AddToListForm();

            AddItemForm.FormClosing += (s, args) => { if (AddItemForm.NewTeam != null)
                                                      {
                                                          UpdateFlyModelsList();
                                                      }
                                                      ; };
            AddItemForm.Show();
        }
예제 #2
0
 private void Edit_Click(object sender, EventArgs e)
 {
     if (ListOfTeams.SelectedItem != null)
     {
         SomethingChanged = true;
         AddToListForm AddItemForm = new AddToListForm((Team)ListOfTeams.SelectedItem);
         //Team T = AddItemForm.NewTeam;
         AddItemForm.FormClosing += (s, args) => { UpdateFlyModelsList(); };
         //ListOfTeams.Items[ListOfTeams.SelectedIndex] = TimerSettings.Competition.Teams.TeamClumps[FlyModelsList.SelectedIndex].Teams[ListOfTeams.SelectedIndex];
         AddItemForm.Show();
     }
     else
     {
         MessageBox.Show("Команда не выбрана!");
     }
 }