private void Edit(object sender, RoutedEventArgs e)
        {
            EditTeamWindow editwindow = new EditTeamWindow(Teamgrid.SelectedItem as Team, token);

            editwindow.Show();
            this.Close();
        }
        private void EditTeamClick(object sender, RoutedEventArgs e)
        {
            EditTeamWindow editTeamWindow = new EditTeamWindow(lbox.SelectedItem as Team, token);

            editTeamWindow.Show();
        }