private void EditButtonClick(object sender, RoutedEventArgs e) { if (!TeamEditButton.IsEnabled) { TeamEditor win2 = new TeamEditor(teamList.ElementAt(TeamListLB.SelectedIndex).IdTeam); win2.Show(); } else { } }
private void NewButtonClick(object sender, RoutedEventArgs e) { if (!TeamEditButton.IsEnabled) { TeamEditor win2 = new TeamEditor(); win2.Show(); } else { } }
internal void Show(TeamEditor teamEditor) { parent = teamEditor; this.Show(); }