示例#1
0
 private async void CreateNewGame()
 {
     //await CreateField();
     var newGame = new GameAddress();
    // newGame.GameFieldX = (float) _latitude;
     //newGame.GameFieldY = (float) _longitude;
     //newGame.GameFieldAddressString = SelectedAddress;
     newGame.FieldID = _fieldID;
     newGame.Time = Time;
     newGame.Date = Date;
     newGame.GameMode = GameMode;
     
     // todo надо что-то придумать с идентификатором пользователя
     newGame.Author = 5;
     await InsertGameAddress(newGame);
 }
示例#2
0
 private async Task InsertGameAddress(GameAddress gameAddress)
 {
     await _gameTable.InsertAsync(gameAddress);
 }