コード例 #1
0
 private void UpdateGame(GameHelper helper, Game game, Game hisGame)
 {
     hisGame.Win = game.Win;
     hisGame.Loss = game.Loss;
     hisGame.Tie = game.Tie;
     hisGame.OverTimeLoss = game.OverTimeLoss;
     hisGame.OverTimeWin = game.OverTimeWin;
     hisGame.ShootOutLoss = game.ShootOutLoss;
     hisGame.ShootOutWin = game.ShootOutWin;
     hisGame.GoalsAgainst = game.GoalsAgainst;
     hisGame.GoalsFor = game.GoalsFor;
     hisGame.ShotsFor = game.ShotsFor;
     hisGame.ShotsAgainst = game.ShotsAgainst;
     hisGame.PPG = game.PPG;
     hisGame.PPOppertunities = game.PPOppertunities;
     hisGame.PPGA = game.PPGA;
     hisGame.TimesShortHanded = game.TimesShortHanded;
     hisGame.ShortHandedGoalsAgainst = game.ShortHandedGoalsAgainst;
     hisGame.ShortHandedGoalsFor = game.ShortHandedGoalsFor;
     hisGame.Attendence = game.Attendence;
     helper.UpdateMySQLGame(hisGame);
     InfoLabel.Text += String.Format("Updating game {0}. {1}", game.Date, "<br />");
 }