private void addBtn_Click(object sender, RoutedEventArgs e) { Teams newTeam = new Teams(); newTeam.Name = teamTextBox.Text; App.db.Teams.InsertOnSubmit(newTeam); App.db.SubmitChanges(); App.refreshDb(App.teams); populateTeamsComboBox(); teamComboBox.SelectedItem = newTeam.Name; teamTextBox.Text = String.Empty; }
public static void setInstance(Teams team) { CurrentTeam.currentTeam = team; }
partial void UpdateTeams(Teams instance);
partial void DeleteTeams(Teams instance);
partial void InsertTeams(Teams instance);