Ejemplo n.º 1
0
        private void NewTeamButton_Click(object sender, RoutedEventArgs e)
        {
            // Adding null parameter, since we want to create a new team..
            NewTeamWindow newTeamWindow = new NewTeamWindow(new NewTeamViewModel(TeamsViewModel, null));

            newTeamWindow.Show();
        }
Ejemplo n.º 2
0
        private void ModifyTeam(object sender, RoutedEventArgs e)
        {
            Button        source           = sender as Button;
            Team          CurrentTeam      = source.DataContext as Team;
            NewTeamWindow ModifyTeamWindow = new NewTeamWindow(new NewTeamViewModel(TeamsViewModel, CurrentTeam));

            ModifyTeamWindow.Show();
        }